3 Commits

Author SHA1 Message Date
MrMeeb 02f9dbc024 Only pipe exit code to container exit code if ONE_SHOT=false
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
MrMeeb f82ed81e2e Add missing shebang to finish hooks 2024-06-15 15:41:02 +00:00
MrMeeb 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
+2 -1
View File
@@ -4,6 +4,7 @@
if [ $ONE_SHOT == "true" ]; then
# 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
+9 -1
View File
@@ -1 +1,9 @@
echo "$e" > /run/s6-linux-init-container-results/exitcode
#!/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
+9 -1
View File
@@ -1 +1,9 @@
echo "$e" > /run/s6-linux-init-container-results/exitcode
#!/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