Update tor-router (#7)

In line 26 switched "if" to "elif"
This commit is contained in:
FaultierSP 2020-06-07 21:20:56 +02:00 committed by GitHub
parent 0bfd341c65
commit 7658db7e1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,7 +23,7 @@ if ! command -v tor > /dev/null; then
elif ! systemctl is-active tor.service > /dev/null; then elif ! systemctl is-active tor.service > /dev/null; then
echo "The tor service is not active, please start the tor service before running the script." echo "The tor service is not active, please start the tor service before running the script."
exit exit
if ! command -v iptables > /dev/null; then elif ! command -v iptables > /dev/null; then
echo "You need to install the iptables package." echo "You need to install the iptables package."
exit exit
else else