Verified Commit 8acbfb7c authored by likewhoa's avatar likewhoa
Browse files

reloads or restart tor service when needed. See issue #97

parent 14360441
......@@ -422,7 +422,7 @@ TOR_DIR
if ! systemctl is-active --quiet tor; then
sudo sed -i 's:^ReadWriteDirectories=-/var/lib/tor.*$:ReadWriteDirectories=-/var/lib/tor /mnt/usb/tor:' /usr/lib/systemd/system/tor.service
sudo systemctl daemon-reload
sudo systemctl restart --quiet tor
sudo systemctl reload-or-restart --quiet tor
fi
cat <<TOR_CONFIG
......@@ -2296,7 +2296,7 @@ HiddenServiceDir ${install_dir_tor}/specter_server/\n\
HiddenServiceVersion 3\n\
HiddenServicePort 443 127.0.0.1:25441\n\
" /etc/tor/torrc
sudo systemctl restart --quiet tor
sudo systemctl reload-or-restart --quiet tor
fi
# Set tor hiddenservice for https specter server
......
......@@ -215,7 +215,7 @@ _update_11() {
sudo sed -i 's:/var/lib/tor/hidden_service_ronin_backend/:/mnt/usb/tor/hidden_service_ronin_backend/:' /etc/tor/torrc
sudo rm -rf /var/lib/tor/hidden_service_ronin_backend
sudo systemctl restart --quiet tor
sudo systemctl reload-or-restart --quiet tor
# Finalize
touch "$HOME"/.config/RoninDojo/data/updates/11-"$(date +%m-%d-%Y)"
......
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