certbot-cron-docker/root/check-one-shot.sh
MrMeeb f6d067b561
All checks were successful
Build Image / Validate Image (push) Successful in 2m29s
Build Image / Publish Image (push) Successful in 4m58s
Build Image / Notify (push) Successful in 3s
Build Tagged Release Image / Build Image (push) Successful in 4m46s
Build Tagged Release Image / Create Release (push) Successful in 19s
Build Tagged Release Image / Notify (push) Successful in 2s
Fix s6-overlay format error (#29)
Add missing shebangs that cause `S6 warning: unable to spawn ./finish: Exec format error` when `ONESHOT=true`. Fixes #28

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

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

10 lines
253 B
Bash

#!/command/with-contenv bash
# shellcheck shell=bash
if [ $ONE_SHOT == "true" ]; then
# Cleanly kill container by sending kill signal to supervisor process
echo 0 > /run/s6-linux-init-container-results/exitcode
/run/s6/basedir/bin/halt
fi