updating Usage output and adding 'container' to list
This commit is contained in:
@@ -32,12 +32,12 @@
|
|||||||
. /usr/local/etc/bastille/bastille.conf
|
. /usr/local/etc/bastille/bastille.conf
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo -e "${COLOR_RED}Usage: bastille list [release|template|jail|log].${COLOR_RESET}"
|
echo -e "${COLOR_RED}Usage: bastille list [release|template|(jail|container)|log].${COLOR_RESET}"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ $# -eq 0 ]; then
|
if [ $# -eq 0 ]; then
|
||||||
jls -N | grep -v 'poudriere'
|
jls -N
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $# -gt 0 ]; then
|
if [ $# -gt 0 ]; then
|
||||||
@@ -60,7 +60,7 @@ if [ $# -gt 0 ]; then
|
|||||||
template|templates)
|
template|templates)
|
||||||
find "${bastille_templatesdir}" -type d -maxdepth 2
|
find "${bastille_templatesdir}" -type d -maxdepth 2
|
||||||
;;
|
;;
|
||||||
jail|jails)
|
jail|jails|container|containers)
|
||||||
if [ -d "${bastille_jailsdir}" ]; then
|
if [ -d "${bastille_jailsdir}" ]; then
|
||||||
JAIL_LIST=$(ls "${bastille_jailsdir}" | sed "s/\n//g")
|
JAIL_LIST=$(ls "${bastille_jailsdir}" | sed "s/\n//g")
|
||||||
for _JAIL in ${JAIL_LIST}; do
|
for _JAIL in ${JAIL_LIST}; do
|
||||||
|
|||||||
Reference in New Issue
Block a user