mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-22 06:10:42 +01:00
Another fix for init.sh
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
2518c653af
commit
fd82877312
@ -65,7 +65,7 @@ OPTIONS=
|
||||
if [ ~/.shorewallrc ]; then
|
||||
. ~/.shorewallrc || exit 1
|
||||
else
|
||||
SBIN=/sbin
|
||||
SBINDIR=/sbin
|
||||
SYSCONFDIR=/etc/sysconfig
|
||||
fi
|
||||
|
||||
@ -82,13 +82,13 @@ command="$1"
|
||||
|
||||
case "$command" in
|
||||
start)
|
||||
exec ${SBIN}/shorewall-lite $OPTIONS start $STARTOPTIONS
|
||||
exec ${SBINDIR}/shorewall-lite $OPTIONS start $STARTOPTIONS
|
||||
;;
|
||||
restart|reload)
|
||||
exec ${SBIN}/shorewall-lite $OPTIONS restart $RESTARTOPTIONS
|
||||
exec ${SBINDIR}/shorewall-lite $OPTIONS restart $RESTARTOPTIONS
|
||||
;;
|
||||
status|stop)
|
||||
exec ${SBIN}/shorewall-lite $OPTIONS $command $@
|
||||
exec ${SBINDIR}/shorewall-lite $OPTIONS $command $@
|
||||
;;
|
||||
*)
|
||||
usage
|
||||
|
@ -66,7 +66,7 @@ OPTIONS="-v0"
|
||||
if [ ~/.shorewallrc ]; then
|
||||
. ~/.shorewallrc || exit 1
|
||||
else
|
||||
SBIN=/sbin
|
||||
SBINDIR=/sbin
|
||||
SYSCONFDIR=/etc/sysconfig
|
||||
fi
|
||||
|
||||
@ -84,13 +84,13 @@ shift
|
||||
|
||||
case "$command" in
|
||||
start)
|
||||
exec $SBIN/shorewall $OPTIONS start $STARTOPTIONS
|
||||
exec $SBINDIR/shorewall $OPTIONS start $STARTOPTIONS
|
||||
;;
|
||||
restart|reload)
|
||||
exec $SBIN/shorewall $OPTIONS restart $RESTARTOPTIONS
|
||||
exec $SBINDIR/shorewall $OPTIONS restart $RESTARTOPTIONS
|
||||
;;
|
||||
status|stop)
|
||||
exec $SBIN/shorewall $OPTIONS $command
|
||||
exec $SBINDIR/shorewall $OPTIONS $command
|
||||
;;
|
||||
*)
|
||||
usage
|
||||
|
@ -65,7 +65,7 @@ OPTIONS=
|
||||
if [ ~/.shorewallrc ]; then
|
||||
. ~/.shorewallrc || exit 1
|
||||
else
|
||||
SBIN=/sbin
|
||||
SBINDIR=/sbin
|
||||
SYSCONFDIR=/etc/sysconfig
|
||||
fi
|
||||
|
||||
@ -82,13 +82,13 @@ command="$1"
|
||||
|
||||
case "$command" in
|
||||
start)
|
||||
exec ${SBIN}/shorewall6-lite $OPTIONS start $STARTOPTIONS
|
||||
exec ${SBINDIR}/shorewall6-lite $OPTIONS start $STARTOPTIONS
|
||||
;;
|
||||
restart|reload)
|
||||
exec ${SBIN}/shorewall6-lite $OPTIONS restart $RESTARTOPTIONS
|
||||
exec ${SBINDIR}/shorewall6-lite $OPTIONS restart $RESTARTOPTIONS
|
||||
;;
|
||||
status|stop)
|
||||
exec ${SBIN}/shorewall6-lite $OPTIONS $command $@
|
||||
exec ${SBINDIR}/shorewall6-lite $OPTIONS $command $@
|
||||
;;
|
||||
*)
|
||||
usage
|
||||
|
@ -66,7 +66,7 @@ OPTIONS="-v0"
|
||||
if [ ~/.shorewallrc ]; then
|
||||
. ~/.shorewallrc || exit 1
|
||||
else
|
||||
SBIN=/sbin
|
||||
SBINDIR=/sbin
|
||||
SYSCONFDIR=/etc/sysconfig
|
||||
fi
|
||||
|
||||
@ -85,13 +85,13 @@ command="$1"
|
||||
|
||||
case "$command" in
|
||||
start)
|
||||
exec ${SBIN}/shorewall6 $OPTIONS start $STARTOPTIONS
|
||||
exec ${SBINDIR}/shorewall6 $OPTIONS start $STARTOPTIONS
|
||||
;;
|
||||
restart|reload)
|
||||
exec ${SBIN}/shorewall6 $OPTIONS restart $RESTARTOPTIONS
|
||||
exec ${SBINDIR}/shorewall6 $OPTIONS restart $RESTARTOPTIONS
|
||||
;;
|
||||
status|stop)
|
||||
exec ${SBIN}/shorewall6 $OPTIONS $command $@
|
||||
exec ${SBINDIR}/shorewall6 $OPTIONS $command $@
|
||||
;;
|
||||
*)
|
||||
usage
|
||||
|
Loading…
Reference in New Issue
Block a user