Compare commits

...

3 Commits

Author SHA1 Message Date
02f9dbc024
Only pipe exit code to container exit code if ONE_SHOT=false
All checks were successful
Test Pull Request / Build Image (pull_request) Successful in 4m43s
Test Pull Request / Notify (pull_request) Successful in 3s
2024-06-15 15:41:26 +00:00
f82ed81e2e
Add missing shebang to finish hooks 2024-06-15 15:41:02 +00:00
9ed7d80765
Change to documented method for killing a container 2024-06-15 15:39:09 +00:00
3 changed files with 20 additions and 3 deletions

View File

@ -4,6 +4,7 @@
if [ $ONE_SHOT == "true" ]; then if [ $ONE_SHOT == "true" ]; then
# Cleanly kill container by sending kill signal to supervisor process # Cleanly kill container by sending kill signal to supervisor process
kill 1 echo 0 > /run/s6-linux-init-container-results/exitcode
/run/s6/basedir/bin/halt
fi fi

View File

@ -1 +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 echo "$e" > /run/s6-linux-init-container-results/exitcode
fi

View File

@ -1 +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 echo "$e" > /run/s6-linux-init-container-results/exitcode
fi