fix listing priority again

This commit is contained in:
tschettervictor
2025-03-19 10:48:26 -06:00
parent eaacab6e7e
commit 3c88a0bcc2
2 changed files with 6 additions and 6 deletions

View File

@@ -151,8 +151,8 @@ list_jail_priority() {
local _boot_file=${bastille_jailsdir}/${_jail}/boot.conf
# Set defaults if boot file does not exist
if [ ! -f ${_boot_file} ]; then
sysrc -f ${_boot_file} boot=on
sysrc -f ${_boot_file} priority=99
sysrc -f ${_boot_file} boot=on > /dev/null 2>&1
sysrc -f ${_boot_file} priority=99 > /dev/null 2>&1
fi
_priority="$(sysrc -f ${bastille_jailsdir}/${_jail}/boot.conf -n priority)"
echo "${_jail} ${_priority}"