0.3.20181130 damned typos
This commit is contained in:
@@ -32,7 +32,7 @@
|
|||||||
. /usr/local/etc/bastille/bastille.conf
|
. /usr/local/etc/bastille/bastille.conf
|
||||||
|
|
||||||
## version
|
## version
|
||||||
BASTILLE_VERSION="0.3.20181128"
|
BASTILLE_VERSION="0.3.20181130"
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
cat << EOF
|
cat << EOF
|
||||||
|
|||||||
@@ -19,13 +19,13 @@
|
|||||||
name=bastille
|
name=bastille
|
||||||
rcvar=${name}_enable
|
rcvar=${name}_enable
|
||||||
|
|
||||||
load_rc_config ${name}
|
|
||||||
|
|
||||||
: ${bastille_enable:=NO}
|
: ${bastille_enable:=NO}
|
||||||
: ${bastille_list:="ALL"}
|
: ${bastille_list:="ALL"}
|
||||||
|
|
||||||
start_command="/usr/local/bin/bastille start"
|
command=/usr/local/bin/${name}
|
||||||
stop_command="/usr/local/bin/bastille stop"
|
start_cmd="bastille_start"
|
||||||
|
stop_cmd="bastille_stop"
|
||||||
|
restart_cmd="bastille_stop && bastille_start"
|
||||||
|
|
||||||
bastille_start()
|
bastille_start()
|
||||||
{
|
{
|
||||||
@@ -38,7 +38,7 @@ bastille_start()
|
|||||||
|
|
||||||
for _jail in ${bastille_list}; do
|
for _jail in ${bastille_list}; do
|
||||||
echo "Starting Bastille Jail: ${_jail}"
|
echo "Starting Bastille Jail: ${_jail}"
|
||||||
${start_command} ${_jail}
|
${command} start ${_jail}
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -53,8 +53,9 @@ bastille_stop()
|
|||||||
|
|
||||||
for _jail in ${bastille_list}; do
|
for _jail in ${bastille_list}; do
|
||||||
echo "Stopping Bastille Jail: ${_jail}"
|
echo "Stopping Bastille Jail: ${_jail}"
|
||||||
${stop_command} ${_jail}
|
${command} stop ${_jail}
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
load_rc_config ${name}
|
||||||
run_rc_command "$1"
|
run_rc_command "$1"
|
||||||
|
|||||||
Reference in New Issue
Block a user