fixes #389 regarding shutdown order

This commit is contained in:
Christer Edwards
2022-11-01 17:23:00 -06:00
parent 937986f4b6
commit 6a7ab04d9b

View File

@@ -51,7 +51,9 @@ bastille_stop()
local _jail
for _jail in ${bastille_list}; do
## reverse order of list for shutdown ## fixes #389
bastille_revlist=$(echo "${bastille_list}" | awk '{ for (i=NF; i>1; i--) printf("%s ",$i); print $1; }')
for _jail in ${bastille_revlist}; do
echo "Stopping Bastille Container: ${_jail}"
${command} stop ${_jail}
done