mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2024-11-19 18:00:22 +01:00
generating TLS by starting lnd directly
This commit is contained in:
parent
317658c11f
commit
f4aabbf273
@ -113,8 +113,9 @@ fi
|
|||||||
echo "deleting TLSCert"
|
echo "deleting TLSCert"
|
||||||
sudo rm /mnt/hdd/lnd/tls.* 2>/dev/null
|
sudo rm /mnt/hdd/lnd/tls.* 2>/dev/null
|
||||||
echo "let lnd generate new TLSCert"
|
echo "let lnd generate new TLSCert"
|
||||||
sudo systemctl restart lnd
|
sudo -u bitcoin /usr/local/bin/lnd &>/dev/null &
|
||||||
echo "wait until generated"
|
lndPID=$(jobs -l | grep '/usr/local/bin/lnd' | cut -d ' ' -f3)
|
||||||
|
echo "wait until generated lndPID(${lndPID})"
|
||||||
newCertExists=0
|
newCertExists=0
|
||||||
count=0
|
count=0
|
||||||
while [ ${newCertExists} -eq 0 ]
|
while [ ${newCertExists} -eq 0 ]
|
||||||
@ -128,6 +129,7 @@ do
|
|||||||
newCertExists=$(sudo ls /mnt/hdd/lnd/tls.cert 2>/dev/null | grep -c '.cert')
|
newCertExists=$(sudo ls /mnt/hdd/lnd/tls.cert 2>/dev/null | grep -c '.cert')
|
||||||
sleep 2
|
sleep 2
|
||||||
done
|
done
|
||||||
|
sudo kill -KILL ${lndPID}
|
||||||
echo "copy new cert to admin user"
|
echo "copy new cert to admin user"
|
||||||
sudo cp /mnt/hdd/lnd/tls.cert /home/admin/.lnd
|
sudo cp /mnt/hdd/lnd/tls.cert /home/admin/.lnd
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user