mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-11 21:29:29 +02:00
always set lightning instance in raspiblitz.conf
This commit is contained in:
parent
548e28ddfb
commit
7ac2d3ad5d
@ -37,11 +37,14 @@ source <(/home/admin/config.scripts/network.aliases.sh getvars cln $2)
|
||||
echo "# Running: 'cln.install.sh $*'"
|
||||
echo "# Using the settings for: ${network} ${CHAIN}"
|
||||
|
||||
# add default value to raspi config if needed
|
||||
if ! grep -Eq "^lightning=" /mnt/hdd/raspiblitz.conf; then
|
||||
echo "lightning=cln" | sudo tee -a /mnt/hdd/raspiblitz.conf
|
||||
fi
|
||||
# add default value to raspi config if needed
|
||||
if ! grep -Eq "^${netprefix}cln=" /mnt/hdd/raspiblitz.conf; then
|
||||
echo "${netprefix}cln=off" | sudo tee -a /mnt/hdd/raspiblitz.conf
|
||||
fi
|
||||
|
||||
source /mnt/hdd/raspiblitz.conf
|
||||
|
||||
if [ "$1" = on ]||[ "$1" = update ]||[ "$1" = experimental ]||[ "$1" = testPR ];then
|
||||
|
@ -38,6 +38,17 @@ elif [ ${CHAIN} = mainnet ];then
|
||||
zmqprefix=28
|
||||
fi
|
||||
|
||||
source /home/admin/raspiblitz.info
|
||||
# add default value to raspi config if needed
|
||||
if ! grep -Eq "^lightning=" /mnt/hdd/raspiblitz.conf; then
|
||||
echo "lightning=lnd" | sudo tee -a /mnt/hdd/raspiblitz.conf
|
||||
fi
|
||||
# add default value to raspi config if needed
|
||||
if ! grep -Eq "^${netprefix}lnd=" /mnt/hdd/raspiblitz.conf; then
|
||||
echo "${netprefix}lnd=off" >> /mnt/hdd/raspiblitz.conf
|
||||
fi
|
||||
source /mnt/hdd/raspiblitz.conf
|
||||
|
||||
function removeParallelService() {
|
||||
if [ -f "/etc/systemd/system/${netprefix}lnd.service" ];then
|
||||
sudo -u bitcoin /usr/local/bin/lncli\
|
||||
@ -50,12 +61,6 @@ function removeParallelService() {
|
||||
fi
|
||||
}
|
||||
|
||||
source /home/admin/raspiblitz.info
|
||||
# add default value to raspi config if needed
|
||||
if ! grep -Eq "^${netprefix}lnd=" /mnt/hdd/raspiblitz.conf; then
|
||||
echo "${netprefix}lnd=off" >> /mnt/hdd/raspiblitz.conf
|
||||
fi
|
||||
source /mnt/hdd/raspiblitz.conf
|
||||
|
||||
# switch on
|
||||
if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user