This commit is contained in:
Alexandre
2025-07-20 16:14:23 +02:00
committed by GitHub
parent 9eb2011f45
commit 82bfe9d2cb
4 changed files with 10 additions and 17 deletions

View File

@@ -1 +1,8 @@
#!/bin/bash
for files in /etc/services.d/*; do
if [[ -f /etc/services.d/$files/run ]]; then
chmod +x /etc/services.d/$files/run
/./etc/services.d/$files/run & sleep 10
fi
done

View File

@@ -1,15 +0,0 @@
#!/bin/bash
# Use /bin/bash shebang because we don't want the container environment in here
# Version 1
# 2024-10-18 - Initial Release
WITHCONTENV_VER="1.20241018"
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)"
fi
exec /command/with-contenv "$@"