#!/bin/bash # Generate LND Config if [ -f /mnt/hdd/mynode/settings/lnd_custom.conf ]; then cp -f /mnt/hdd/mynode/settings/lnd_custom.conf /mnt/hdd/mynode/lnd/lnd.conf else cp -f /usr/share/mynode/lnd.conf /mnt/hdd/mynode/lnd/lnd.conf fi ALIAS=$(cat /mnt/hdd/mynode/settings/.lndalias) sed -i "s/alias=.*/alias=$ALIAS/g" /mnt/hdd/mynode/lnd/lnd.conf chown bitcoin:bitcoin /mnt/hdd/mynode/lnd/lnd.conf