Match exact jail name for start/stop commands, don't allow for dots during create

This commit is contained in:
Jose
2019-11-19 13:10:24 -04:00
parent 4fb2cc1247
commit 4eb5d1b9ba
4 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ if [ "$1" = 'ALL' ]; then
JAILS=$(/usr/local/bin/bastille list jails)
fi
if [ "$1" != 'ALL' ]; then
JAILS=$(/usr/local/bin/bastille list jails | grep "$1")
JAILS=$(/usr/local/bin/bastille list jails | grep -w "$1")
fi
for _jail in ${JAILS}; do