mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-27 03:56:21 +02:00
electrs: check nginx last when opening menu
This commit is contained in:
@@ -98,18 +98,6 @@ if [ "$1" = "menu" ]; then
|
|||||||
echo "# collecting status info ... (please wait)"
|
echo "# collecting status info ... (please wait)"
|
||||||
source <(sudo /home/admin/config.scripts/bonus.electrs.sh status)
|
source <(sudo /home/admin/config.scripts/bonus.electrs.sh status)
|
||||||
|
|
||||||
if [ ${nginxTest} -eq 0 ]; then
|
|
||||||
dialog --title "Testing nginx.conf has failed" --msgbox "
|
|
||||||
Will try to fix by generating a self-signed certificate.
|
|
||||||
Try connecting via port 50002 or Tor again once finished.
|
|
||||||
Check 'sudo nginx -t' for a detailed error message.
|
|
||||||
" 9 61
|
|
||||||
/home/admin/config.scripts/internet.selfsignedcert.sh
|
|
||||||
echo "Press ENTER to get back to main menu."
|
|
||||||
read key
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ${serviceInstalled} -eq 0 ]; then
|
if [ ${serviceInstalled} -eq 0 ]; then
|
||||||
echo "# FAIL not installed"
|
echo "# FAIL not installed"
|
||||||
exit 1
|
exit 1
|
||||||
@@ -135,6 +123,19 @@ This can take multiple hours.
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ ${nginxTest} -eq 0 ]; then
|
||||||
|
dialog --title "Testing nginx.conf has failed" --msgbox "
|
||||||
|
Will try to fix by generating a self-signed certificate.
|
||||||
|
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.
|
||||||
|
" 10 61
|
||||||
|
/home/admin/config.scripts/internet.selfsignedcert.sh
|
||||||
|
echo "Press ENTER to get back to main menu."
|
||||||
|
read key
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
# Options (available without TOR)
|
# Options (available without TOR)
|
||||||
OPTIONS=( \
|
OPTIONS=( \
|
||||||
CONNECT "How to Connect" \
|
CONNECT "How to Connect" \
|
||||||
|
Reference in New Issue
Block a user