mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-23 10:40:43 +01:00
move jail running check to for loop
This commit is contained in:
@@ -47,8 +47,7 @@ shift
|
|||||||
if [ "${TARGET}" = "ALL" ]; then
|
if [ "${TARGET}" = "ALL" ]; then
|
||||||
target_all_jails
|
target_all_jails
|
||||||
else
|
else
|
||||||
check_jail_exists "${TARGET}"
|
check_target_exists "${TARGET}"
|
||||||
check_target_is_running "${TARGET}"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $# -ne 0 ]; then
|
if [ $# -ne 0 ]; then
|
||||||
@@ -58,6 +57,7 @@ fi
|
|||||||
bastille_root_check
|
bastille_root_check
|
||||||
|
|
||||||
for _jail in ${JAILS}; do
|
for _jail in ${JAILS}; do
|
||||||
|
check_target_is_running "${TARGET}"
|
||||||
info "[${_jail}]:"
|
info "[${_jail}]:"
|
||||||
jexec -l "${_jail}" /usr/bin/top
|
jexec -l "${_jail}" /usr/bin/top
|
||||||
echo -e "${COLOR_RESET}"
|
echo -e "${COLOR_RESET}"
|
||||||
|
|||||||
Reference in New Issue
Block a user