mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-10-09 20:32:52 +02:00
electrs: test and fix missing nginx log
This commit is contained in:
@@ -122,14 +122,18 @@ This can take multiple hours.
|
|||||||
" 9 48
|
" 9 48
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ${nginxTest} -eq 0 ]; then
|
if [ ${nginxTest} -eq 0 ]; then
|
||||||
dialog --title "Testing nginx.conf has failed" --msgbox "
|
dialog --title "Testing nginx.conf has failed" --msgbox "
|
||||||
Will try to fix by generating a self-signed certificate.
|
Nginx is in a failed state. Will attempt to fix.
|
||||||
Try connecting via port 50002 or Tor again once finished.
|
Try connecting via port 50002 or Tor again once finished.
|
||||||
Open this menu again for more information.
|
|
||||||
Check 'sudo nginx -t' for a detailed error message.
|
Check 'sudo nginx -t' for a detailed error message.
|
||||||
" 10 61
|
" 9 61
|
||||||
|
logFileMissing=$(sudo nginx -t 2>&1 | grep -c "/var/log/nginx/access.log")
|
||||||
|
if [ ${logFileMissing} -eq 1 ]; then
|
||||||
|
sudo mkdir /var/log/nginx
|
||||||
|
sudo systemctl restart nginx
|
||||||
|
fi
|
||||||
/home/admin/config.scripts/internet.selfsignedcert.sh
|
/home/admin/config.scripts/internet.selfsignedcert.sh
|
||||||
echo "Press ENTER to get back to main menu."
|
echo "Press ENTER to get back to main menu."
|
||||||
read key
|
read key
|
||||||
|
Reference in New Issue
Block a user