mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-26 15:30:45 +01:00
@@ -32,7 +32,7 @@
|
||||
. /usr/local/etc/bastille/bastille.conf
|
||||
|
||||
## version
|
||||
BASTILLE_VERSION="0.3.20181128"
|
||||
BASTILLE_VERSION="0.3.20181130"
|
||||
|
||||
usage() {
|
||||
cat << EOF
|
||||
|
||||
@@ -19,13 +19,13 @@
|
||||
name=bastille
|
||||
rcvar=${name}_enable
|
||||
|
||||
load_rc_config ${name}
|
||||
|
||||
: ${bastille_enable:=NO}
|
||||
: ${bastille_list:="ALL"}
|
||||
|
||||
start_command="/usr/local/bin/bastille start"
|
||||
stop_command="/usr/local/bin/bastille stop"
|
||||
command=/usr/local/bin/${name}
|
||||
start_cmd="bastille_start"
|
||||
stop_cmd="bastille_stop"
|
||||
restart_cmd="bastille_stop && bastille_start"
|
||||
|
||||
bastille_start()
|
||||
{
|
||||
@@ -38,7 +38,7 @@ bastille_start()
|
||||
|
||||
for _jail in ${bastille_list}; do
|
||||
echo "Starting Bastille Jail: ${_jail}"
|
||||
${start_command} ${_jail}
|
||||
${command} start ${_jail}
|
||||
done
|
||||
}
|
||||
|
||||
@@ -53,8 +53,9 @@ bastille_stop()
|
||||
|
||||
for _jail in ${bastille_list}; do
|
||||
echo "Stopping Bastille Jail: ${_jail}"
|
||||
${stop_command} ${_jail}
|
||||
${command} stop ${_jail}
|
||||
done
|
||||
}
|
||||
|
||||
load_rc_config ${name}
|
||||
run_rc_command "$1"
|
||||
|
||||
Reference in New Issue
Block a user