Skip to content
This repository has been archived by the owner on Nov 16, 2020. It is now read-only.

Restart nginx from installation script after updating nginx.conf #27

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions install_bsq_explorer_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ sudo python3 -m pip install ${EXPLORER_PYTHON_PKG}
echo "[*] Adding Nginx configuration"
sudo -H -i -u "${ROOT_USER}" install -c -o "${ROOT_USER}" -g "${ROOT_GROUP}" -m 644 "${BISQ_HOME}/${EXPLORER_REPO_NAME}/nginx.conf" "${NGINX_CONFIGURATION}"

echo "[*] Restarting Nginx"
sudo -H -i -u "${ROOT_USER}" service nginx restart

echo "[*] Adding Tor configuration"
if ! grep bsqexplorer /etc/tor/torrc >/dev/null 2>&1;then
sudo -H -i -u "${ROOT_USER}" /bin/sh -c "echo HiddenServiceDir ${TOR_RESOURCES}/${EXPLORER_HIDDENSVC}/ >> ${TOR_CONFIGURATION}"
Expand Down