mirror of
https://github.com/hackacad/bastille.git
synced 2026-04-13 04:13:25 +02:00
Add set_target function
This commit is contained in:
@@ -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=""
|
||||
|
||||
Reference in New Issue
Block a user