diff --git a/usr/local/share/bastille/common.sh b/usr/local/share/bastille/common.sh index 85310110..42eb4b66 100644 --- a/usr/local/share/bastille/common.sh +++ b/usr/local/share/bastille/common.sh @@ -92,6 +92,15 @@ check_target_is_running() { fi } +set_target() { + if [ "{1}" = ALL ] || [ "{1}" = all]; then + target_all_jails + else + TARGET="{1}" + check_target_exists "{TARGET}" + fi +} + target_all_jails() { _JAILS=$(/usr/sbin/jls name) JAILS=""