mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-25 06:55:46 +01:00
add small info to reset command
This commit is contained in:
@@ -299,12 +299,16 @@ while [ "$#" -gt 0 ]; do
|
||||
for JAIL_NAME in $(ls "${bastille_jailsdir}" | sed "s/\n//g"); do
|
||||
echo "${JAIL_NAME} redirects:"
|
||||
pfctl -a "rdr/${JAIL_NAME}" -Fn
|
||||
rm -f "${bastille_jailsdir}"/"${JAIL_NAME}"/rdr.conf
|
||||
if rm -f "${bastille_jailsdir}"/"${JAIL_NAME}"/rdr.conf; then
|
||||
info "[${JAIL_NAME}]: rdr.conf removed."
|
||||
fi
|
||||
done
|
||||
else
|
||||
check_jail_validity
|
||||
pfctl -a "rdr/${JAIL_NAME}" -Fn
|
||||
rm -f "${bastille_jailsdir}"/"${JAIL_NAME}"/rdr.conf
|
||||
if rm -f "${bastille_jailsdir}"/"${JAIL_NAME}"/rdr.conf; then
|
||||
info "[${JAIL_NAME}]: rdr.conf removed."
|
||||
fi
|
||||
fi
|
||||
shift
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user