mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-30 17:30:24 +01:00
Update top.sh
This commit is contained in:
@@ -53,6 +53,11 @@ set_target_single "${TARGET}"
|
||||
check_target_exists "${TARGET}"
|
||||
check_target_is_running "${TARGET}"
|
||||
|
||||
info "[${TARGET}]:"
|
||||
jexec -l "${TARGET}" /usr/bin/top
|
||||
bastille_jail_path="$(/usr/sbin/jls -j "${TARGET}" path)"
|
||||
if [ ! -x "${bastille_jail_path}/usr/local/bin/top" ]; then
|
||||
error_notify "top not found on ${TARGET}."
|
||||
elif [ -x "${bastille_jail_path}/usr/local/bin/top" ]; then
|
||||
info "[${TARGET}]:"
|
||||
jexec -l "${TARGET}" /usr/local/bin/htop
|
||||
fi
|
||||
echo -e "${COLOR_RESET}"
|
||||
|
||||
Reference in New Issue
Block a user