minor fix

This commit is contained in:
Jesús 2021-07-28 20:52:28 -05:00
parent 9b83fa093e
commit ed68527b2f
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766

View File

@ -92,7 +92,7 @@ EOF
while :; do
checkurl=$(curl --socks5 "localhost:${TOR_PORT:-9050}" -o /dev/null -s -w "%{http_code}\n" "${URL_CHECK:-https://www.youtube.com/results?search_query=rms}")
if [ "$checkurl" = '502' ] || [ "$checkurl" = '302' ]; then
pkill tor && tor -f /etc/tor/torrc --runasdaemon 0 2>&1
pkill tor && tor -f /etc/tor/torrc --runasdaemon 1 2>&1
pkill python3 && /usr/bin/python3 /srv/app/server.py
else
pgrep python3 > /dev/null || exec /usr/bin/python3 /srv/app/server.py