mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-03-24 12:17:26 +01:00
fixed #1585 script should not restart itself, just fill a variable with default command "start"
This commit is contained in:
parent
cb020de62c
commit
20caea4f99
@ -72,12 +72,12 @@ reset_all() {
|
||||
# See how we were called.
|
||||
# For backwards compatibility missing argument is equivalent to 'start'
|
||||
|
||||
test -z "$1" && {
|
||||
$0 start
|
||||
exit $?
|
||||
cmd=$1
|
||||
test -z "$cmd" && {
|
||||
cmd="start"
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
case "$cmd" in
|
||||
start)
|
||||
log "Activating firewall script generated {{$timestamp}} by {{$user}}"
|
||||
check_tools
|
||||
|
||||
@ -79,12 +79,12 @@ reset_all() {
|
||||
# See how we were called.
|
||||
# For backwards compatibility missing argument is equivalent to 'start'
|
||||
|
||||
test -z "$1" && {
|
||||
$0 start
|
||||
exit $?
|
||||
cmd=$1
|
||||
test -z "$cmd" && {
|
||||
cmd="start"
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
case "$cmd" in
|
||||
start)
|
||||
log "Activating firewall script generated {{$timestamp}} by {{$user}}"
|
||||
log "Database was {{$database}}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user