mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-28 04:26:28 +02:00
fix syntax bugs
This commit is contained in:
@@ -18,7 +18,7 @@ dynDomain=$2
|
|||||||
updateDynDomain=$3
|
updateDynDomain=$3
|
||||||
|
|
||||||
# run interactive if 'turn on' && no further parameters
|
# run interactive if 'turn on' && no further parameters
|
||||||
if [ "${turn}"= "on" ] && [ ${#dynDomain} -eq 0 ]; then
|
if [ "${turn}" = "on" ] && [ ${#dynDomain} -eq 0 ]; then
|
||||||
|
|
||||||
dialog --backtitle "DynamicDNS" --inputbox "ENTER the Dynamic Domain Name:
|
dialog --backtitle "DynamicDNS" --inputbox "ENTER the Dynamic Domain Name:
|
||||||
|
|
||||||
@@ -59,13 +59,13 @@ fi
|
|||||||
|
|
||||||
# make sure entry line for 'dynDomain' exists
|
# make sure entry line for 'dynDomain' exists
|
||||||
entryExists=$(cat ${configFile} | grep -c 'dynDomain=')
|
entryExists=$(cat ${configFile} | grep -c 'dynDomain=')
|
||||||
if [ ${entryExist} -eq 0 ]; then
|
if [ ${entryExists} -eq 0 ]; then
|
||||||
echo "dynDomain=" >> ${configFile}
|
echo "dynDomain=" >> ${configFile}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# make sure entry line for 'dynDomain' exists
|
# make sure entry line for 'dynDomain' exists
|
||||||
entryExists=$(cat ${configFile} | grep -c 'updateDynDomain')
|
entryExists=$(cat ${configFile} | grep -c 'updateDynDomain')
|
||||||
if [ ${entryExist} -eq 0 ]; then
|
if [ ${entryExists} -eq 0 ]; then
|
||||||
echo "updateDynDomain=" >> ${configFile}
|
echo "updateDynDomain=" >> ${configFile}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -115,7 +115,7 @@ while [ ${newCertExists} -eq 0 ]
|
|||||||
do
|
do
|
||||||
count=$(($count + 1))
|
count=$(($count + 1))
|
||||||
if [ ${count} -gt 60 ]; then
|
if [ ${count} -gt 60 ]; then
|
||||||
echo "FAIL - was not able to generate new LND certs""
|
echo "FAIL - was not able to generate new LND certs"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
newCertExists=$(sudo ls /mnt/hdd/lnd/tls.cert | grep -c '.cert')
|
newCertExists=$(sudo ls /mnt/hdd/lnd/tls.cert | grep -c '.cert')
|
||||||
|
Reference in New Issue
Block a user