Only pipe exit code to container exit code if ONE_SHOT=false

This commit is contained in:
MrMeeb 2024-06-15 15:41:26 +00:00
parent f82ed81e2e
commit 02f9dbc024
Signed by: MrMeeb
GPG Key ID: 3864A01CC606E310
2 changed files with 12 additions and 2 deletions
root/etc/s6-overlay/s6-rc.d
cron
logs

@ -1,4 +1,9 @@
#!/command/with-contenv bash
# shellcheck shell=bash
if [ $ONE_SHOT == "false" ]; then
# Export exit code if not a ONE_SHOT
echo "$e" > /run/s6-linux-init-container-results/exitcode
fi

@ -1,4 +1,9 @@
#!/command/with-contenv bash
# shellcheck shell=bash
if [ $ONE_SHOT == "false" ]; then
# Export exit code if not a ONE_SHOT
echo "$e" > /run/s6-linux-init-container-results/exitcode
fi