mirror of
https://github.com/hackacad/bastille.git
synced 2026-01-06 04:34:19 +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."
|
info "[${TARGET}]: RCTL limits cleared."
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
show)
|
list|show)
|
||||||
# Show limits
|
# Show limits
|
||||||
if [ -s "${bastille_jailsdir}/${_jail}/rctl.conf" ]; then
|
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
|
fi
|
||||||
;;
|
;;
|
||||||
stats)
|
stats)
|
||||||
|
|||||||
Reference in New Issue
Block a user