Commit 14cf5c0e authored by Eduard Toloza's avatar Eduard Toloza

Improve tor service detection

parent 2e453d01
......@@ -10,7 +10,7 @@ TRANS_PORT="9040"
if ! command -v tor > /dev/null; then
echo "You need to install the tor package."
exit
elif [ $(systemctl is-active tor.service) != 0 ]; 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."
exit
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment