mirror of
https://github.com/edu4rdshl/tor-router.git
synced 2026-07-17 23:24:48 +00:00
Fix issue detecting the rules file.
This commit is contained in:
parent
3a81a3b48a
commit
144767ebb2
1 changed files with 6 additions and 6 deletions
|
|
@ -59,14 +59,14 @@ case "$1" in
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
if ! -f "$RULES"; then
|
if test -f "$RULES"; then
|
||||||
echo "$RULES does not exist. Not doing anything."
|
|
||||||
exit
|
|
||||||
else
|
|
||||||
echo "Restoring previous rules from $RULES"
|
echo "Restoring previous rules from $RULES"
|
||||||
iptables -t nat -F
|
iptables -t nat -F
|
||||||
iptables-restore < $RULES
|
iptables-restore < "$RULES"
|
||||||
rm $RULES
|
rm "$RULES"
|
||||||
|
else
|
||||||
|
echo "$RULES does not exist. Not doing anything."
|
||||||
|
exit
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
restart)
|
restart)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue