htop function add

This commit is contained in:
tschettervictor
2024-12-16 12:29:00 -07:00
committed by GitHub
parent 0e3f7a5c0c
commit 63314675af

View File

@@ -37,11 +37,20 @@ usage() {
# Handle special-case commands first.
case "$1" in
help|-h|--help)
usage
;;
help|-h|--help)
usage
;;
esac
TARGET="${1}"
shift
if [ "${TARGET}" = "ALL" ]; then
target_all_jails
else
check_target_exists "${TARGET}"
fi
if [ $# -ne 0 ]; then
usage
fi
@@ -49,6 +58,7 @@ fi
bastille_root_check
for _jail in ${JAILS}; do
check_target_is_running "${_jail}"
bastille_jail_path=$(/usr/sbin/jls -j "${_jail}" path)
if [ ! -x "${bastille_jail_path}/usr/local/bin/htop" ]; then
error_notify "htop not found on ${_jail}."