add ONE_SHOT so container exits after run

This commit is contained in:
2023-07-17 17:49:02 +00:00
parent 58ede5f1b6
commit c16e730a19
10 changed files with 29 additions and 4 deletions

9
root/check-one-shot.sh Normal file
View File

@ -0,0 +1,9 @@
#!/command/with-contenv bash
# shellcheck shell=bash
if [ $ONE_SHOT == "true" ]; then
# Cleanly kill container by sending kill signal to supervisor process
kill 1
fi