mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-19 08:40:44 +01:00
limits: Retain support for no action (will default to add)
This commit is contained in:
@@ -86,6 +86,11 @@ TARGET="${1}"
|
||||
ACTION="${2}"
|
||||
shift 2
|
||||
|
||||
# Retain support for no action (will default to add)
|
||||
if [ "${ACTION}" != "remove" ] && [ "${ACTION}" != "clear" ] && [ "${ACTION}" != "list" ] && [ "${ACTION}" != "show" ] && [ "${ACTION}" != "reset" ] && [ "${ACTION}" != "stats" ]; then
|
||||
ACTION="add"
|
||||
fi
|
||||
|
||||
RACCT_ENABLE="$(sysctl -n kern.racct.enable)"
|
||||
if [ "${RACCT_ENABLE}" != '1' ]; then
|
||||
error_exit "Racct not enabled. Append 'kern.racct.enable=1' to /boot/loader.conf and reboot"
|
||||
@@ -181,5 +186,4 @@ for _jail in ${JAILS}; do
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user