mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-18 16:58:27 -04:00
Fix indent
This commit is contained in:
+9
-7
@@ -72,6 +72,7 @@ process_custom_services() {
|
|||||||
|
|
||||||
# Create our noisy chown alias to handle read-only/remote volumes
|
# Create our noisy chown alias to handle read-only/remote volumes
|
||||||
create_lsiown_alias() {
|
create_lsiown_alias() {
|
||||||
|
# intentional tabs in the heredoc
|
||||||
cat <<-EOF >/usr/bin/lsiown
|
cat <<-EOF >/usr/bin/lsiown
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
chown "\$@" || printf '**** Permissions could not be set. This is probably because your volume mounts are remote or read-only. ****\n**** The app may not work properly and we will not provide support for it. ****\n'
|
chown "\$@" || printf '**** Permissions could not be set. This is probably because your volume mounts are remote or read-only. ****\n**** The app may not work properly and we will not provide support for it. ****\n'
|
||||||
@@ -86,15 +87,16 @@ create_with_contenv_alias() {
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
rm -rf /usr/bin/with-contenv
|
rm -rf /usr/bin/with-contenv
|
||||||
|
# intentional tabs in the heredoc
|
||||||
cat <<-EOF >/usr/bin/with-contenv
|
cat <<-EOF >/usr/bin/with-contenv
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
if [[ -f /run/s6/container_environment/UMASK ]] &&
|
if [[ -f /run/s6/container_environment/UMASK ]] &&
|
||||||
{ [[ "$(pwdx \$\$)" =~ "/run/s6/legacy-services/" ]] ||
|
{ [[ "$(pwdx \$\$)" =~ "/run/s6/legacy-services/" ]] ||
|
||||||
[[ "$(pwdx \$\$)" =~ "/run/s6/services/" ]] ||
|
[[ "$(pwdx \$\$)" =~ "/run/s6/services/" ]] ||
|
||||||
[[ "$(pwdx \$\$)" =~ "/servicedirs/svc-" ]]; }; then
|
[[ "$(pwdx \$\$)" =~ "/servicedirs/svc-" ]]; }; then
|
||||||
umask "$(cat /run/s6/container_environment/UMASK)"
|
umask "$(cat /run/s6/container_environment/UMASK)"
|
||||||
fi
|
fi
|
||||||
exec /command/with-contenv "\$@"
|
exec /command/with-contenv "\$@"
|
||||||
EOF
|
EOF
|
||||||
chmod +x /usr/bin/with-contenv
|
chmod +x /usr/bin/with-contenv
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user