mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-23 02:33:35 +01:00
Fix jail and releases output listing
This commit is contained in:
@@ -47,13 +47,23 @@ if [ $# -gt 0 ]; then
|
|||||||
usage
|
usage
|
||||||
;;
|
;;
|
||||||
release|releases)
|
release|releases)
|
||||||
find "${bastille_releasesdir}" -type d -maxdepth 1
|
REL_LIST=$(ls "${bastille_releasesdir}" | sed "s/\n//g")
|
||||||
|
for _REL in ${REL_LIST}; do
|
||||||
|
if [ -f "${bastille_releasesdir}/${_REL}/root/.profile" ]; then
|
||||||
|
echo "${bastille_releasesdir}/${_REL}"
|
||||||
|
fi
|
||||||
|
done
|
||||||
;;
|
;;
|
||||||
template|templates)
|
template|templates)
|
||||||
find "${bastille_templatesdir}" -type d -maxdepth 2
|
find "${bastille_templatesdir}" -type d -maxdepth 2
|
||||||
;;
|
;;
|
||||||
jail|jails)
|
jail|jails)
|
||||||
ls "${bastille_jailsdir}" | sed "s/\n//g"
|
JAIL_LIST=$(ls "${bastille_jailsdir}" | sed "s/\n//g")
|
||||||
|
for _JAIL in ${JAIL_LIST}; do
|
||||||
|
if [ -f "${bastille_jailsdir}/${_JAIL}/jail.conf" ]; then
|
||||||
|
echo "${_JAIL}"
|
||||||
|
fi
|
||||||
|
done
|
||||||
;;
|
;;
|
||||||
log|logs)
|
log|logs)
|
||||||
find "${bastille_logsdir}" -type f -maxdepth 1
|
find "${bastille_logsdir}" -type f -maxdepth 1
|
||||||
|
|||||||
Reference in New Issue
Block a user