mirror of
https://github.com/hackacad/bastille.git
synced 2026-01-03 11:18:26 +01:00
limits: Allow showing activee rules
This commit is contained in:
@@ -114,10 +114,14 @@ for _jail in ${JAILS}; do
|
||||
info "[${TARGET}]: RCTL limits cleared."
|
||||
fi
|
||||
;;
|
||||
show)
|
||||
list|show)
|
||||
# Show limits
|
||||
if [ -s "${bastille_jailsdir}/${_jail}/rctl.conf" ]; then
|
||||
rctl jail:${_jail} 2>/dev/null
|
||||
if [ "${VALUE}" = "active" ]; then
|
||||
rctl jail:${_jail} 2>/dev/null
|
||||
else
|
||||
cat "${bastille_jailsdir}/${_jail}/rctl.conf"
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
stats)
|
||||
|
||||
Reference in New Issue
Block a user