mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-06-30 03:53:18 -04:00
Fix missing escapes
This commit is contained in:
+4
-4
@@ -91,10 +91,10 @@ create_with_contenv_alias() {
|
||||
cat <<-EOF >/usr/bin/with-contenv
|
||||
#!/bin/bash
|
||||
if [[ -f /run/s6/container_environment/UMASK ]] &&
|
||||
{ [[ "$(pwdx \$\$)" =~ "/run/s6/legacy-services/" ]] ||
|
||||
[[ "$(pwdx \$\$)" =~ "/run/s6/services/" ]] ||
|
||||
[[ "$(pwdx \$\$)" =~ "/servicedirs/svc-" ]]; }; then
|
||||
umask "$(cat /run/s6/container_environment/UMASK)"
|
||||
{ [[ "\$(pwdx \$\$)" =~ "/run/s6/legacy-services/" ]] ||
|
||||
[[ "\$(pwdx \$\$)" =~ "/run/s6/services/" ]] ||
|
||||
[[ "\$(pwdx \$\$)" =~ "/servicedirs/svc-" ]]; }; then
|
||||
umask "\$(cat /run/s6/container_environment/UMASK)"
|
||||
fi
|
||||
exec /command/with-contenv "\$@"
|
||||
EOF
|
||||
|
||||
Reference in New Issue
Block a user