MrMeeb f6d067b561
Fix s6-overlay format error ()
Add missing shebangs that cause `S6 warning: unable to spawn ./finish: Exec format error` when `ONESHOT=true`. Fixes 

Also brings the method for killing a container via service exit inline with s6's documented method

Reviewed-on: 
2024-06-15 15:55:18 +00:00

9 lines
195 B
Plaintext

#!/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