mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-28 20:42:41 +02:00
better wait loop
This commit is contained in:
@@ -114,11 +114,12 @@ count=0
|
|||||||
while [ ${newCertExists} -eq 0 ]
|
while [ ${newCertExists} -eq 0 ]
|
||||||
do
|
do
|
||||||
count=$(($count + 1))
|
count=$(($count + 1))
|
||||||
|
echo "(${count}/60) check for cert"
|
||||||
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 2>/dev/null | grep -c '.cert')
|
||||||
sleep 2
|
sleep 2
|
||||||
done
|
done
|
||||||
echo "copy new cert to admin user"
|
echo "copy new cert to admin user"
|
||||||
|
Reference in New Issue
Block a user