use full path when calling jls binary

This commit is contained in:
Christer Edwards
2021-12-17 19:09:49 -07:00
parent 8a4b0a1f5c
commit faf3b2b691
14 changed files with 26 additions and 26 deletions

View File

@@ -47,7 +47,7 @@ fi
for _jail in ${JAILS}; do
info "[${_jail}]:"
bastille_jail_path=$(jls -j "${_jail}" path)
bastille_jail_path=$(/usr/sbin/jls -j "${_jail}" path)
if [ -f "/usr/sbin/mport" ]; then
jexec -l -U root "${_jail}" /usr/sbin/mport "$@"
elif [ -f "${bastille_jail_path}/usr/bin/apt" ]; then