mirror of
https://github.com/hackacad/bastille.git
synced 2026-05-19 13:53:36 +02:00
list: use list command for jail list
This commit is contained in:
@@ -224,11 +224,11 @@ list_import(){
|
||||
|
||||
list_ports(){
|
||||
if [ -d "${bastille_jailsdir}" ]; then
|
||||
JAIL_LIST=$(ls "${bastille_jailsdir}" | sed "s/\n//g")
|
||||
for _JAIL in ${JAIL_LIST}; do
|
||||
if [ -f "${bastille_jailsdir}/${_JAIL}/rdr.conf" ]; then
|
||||
_PORTS="$(cat "${bastille_jailsdir}"/"${_JAIL}"/rdr.conf)"
|
||||
info "[${_JAIL}]:"
|
||||
JAIL_LIST="$(bastille list jails)"
|
||||
for _jail in ${JAIL_LIST}; do
|
||||
if [ -f "${bastille_jailsdir}/${_jail}/rdr.conf" ]; then
|
||||
_PORTS="$(cat ${bastille_jailsdir}/${_jail}/rdr.conf)"
|
||||
info "[${_jail}]:"
|
||||
echo "${_PORTS}"
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user