add ONE_SHOT so container exits after run
This commit is contained in:
9
root/check-one-shot.sh
Normal file
9
root/check-one-shot.sh
Normal 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
|
Reference in New Issue
Block a user