|
|
@ -49,13 +49,7 @@ echo "" |
|
|
|
echo "*** LND Config ***" |
|
|
|
configExists=$( sudo ls /mnt/hdd/lnd/ | grep -c lnd.conf ) |
|
|
|
if [ ${configExists} -eq 0 ]; then |
|
|
|
if [ "$network" = "litecoin" ]; then |
|
|
|
# litecoin |
|
|
|
sudo cp /home/admin/assets/lnd.litecoin.conf /mnt/hdd/lnd/lnd.conf |
|
|
|
else |
|
|
|
# bitcoin |
|
|
|
sudo cp /home/admin/assets/lnd.conf /mnt/hdd/lnd/lnd.conf |
|
|
|
fi |
|
|
|
sudo cp /home/admin/assets/lnd.${network}.conf /mnt/hdd/lnd/lnd.conf |
|
|
|
sudo chown bitcoin:bitcoin /mnt/hdd/lnd/lnd.conf |
|
|
|
if [ -d /home/bitcoin/.lnd ]; then |
|
|
|
echo "OK - LND config written" |
|
|
|