mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-27 20:16:22 +02:00
cln: fix config path everywhere
This commit is contained in:
@@ -237,7 +237,7 @@ if [ "${lightning}" == "cln" ]; then
|
|||||||
ln_baseInfo="-"
|
ln_baseInfo="-"
|
||||||
ln_channelInfo="\n"
|
ln_channelInfo="\n"
|
||||||
ln_external="\n"
|
ln_external="\n"
|
||||||
ln_alias="$(sudo cat /home/bitcoin/.lightning/${netprefix}config | grep "^alias=*" | cut -f2 -d=)"
|
ln_alias="$(sudo cat "${CLNCONF}" | grep "^alias=*" | cut -f2 -d=)"
|
||||||
if [ ${#ln_alias} -eq 0 ];then
|
if [ ${#ln_alias} -eq 0 ];then
|
||||||
ln_alias=$(echo "${ln_getInfo}" | grep '"alias":' | cut -d '"' -f4)
|
ln_alias=$(echo "${ln_getInfo}" | grep '"alias":' | cut -d '"' -f4)
|
||||||
fi
|
fi
|
||||||
@@ -245,7 +245,7 @@ if [ "${lightning}" == "cln" ]; then
|
|||||||
ln_alias=${hostname}
|
ln_alias=${hostname}
|
||||||
fi
|
fi
|
||||||
ln_publicColor=""
|
ln_publicColor=""
|
||||||
ln_port=$(sudo cat /home/bitcoin/.lightning/${netprefix}config | grep "^bind-addr=*" | cut -f2 -d':')
|
ln_port=$(sudo cat "${CLNCONF}" | grep "^bind-addr=*" | cut -f2 -d':')
|
||||||
if [ ${#ln_port} -eq 0 ]; then
|
if [ ${#ln_port} -eq 0 ]; then
|
||||||
ln_port=$(echo "${ln_getInfo}" | grep '"port":' | cut -d: -f2 | tail -1 | bc)
|
ln_port=$(echo "${ln_getInfo}" | grep '"port":' | cut -d: -f2 | tail -1 | bc)
|
||||||
fi
|
fi
|
||||||
|
@@ -124,7 +124,7 @@ case $CHOICE in
|
|||||||
read key
|
read key
|
||||||
sudo tail -n 30 -f /home/bitcoin/.lightning/${CLNETWORK}/cl.log;;
|
sudo tail -n 30 -f /home/bitcoin/.lightning/${CLNETWORK}/cl.log;;
|
||||||
CLNCONF)
|
CLNCONF)
|
||||||
if /home/admin/config.scripts/blitz.setconf.sh "/home/bitcoin/.lightning/${netprefix}config" "root"
|
if /home/admin/config.scripts/blitz.setconf.sh "${CLNCONF}" "root"
|
||||||
then
|
then
|
||||||
whiptail \
|
whiptail \
|
||||||
--title "Restart" --yes-button "Restart" --no-button "Not now" \
|
--title "Restart" --yes-button "Restart" --no-button "Not now" \
|
||||||
|
@@ -11,7 +11,7 @@ fi
|
|||||||
newName=$2
|
newName=$2
|
||||||
|
|
||||||
# use default values from the raspiblitz.conf
|
# use default values from the raspiblitz.conf
|
||||||
source <(/home/admin/config.scripts/network.aliases.sh getvars $1)
|
source <(/home/admin/config.scripts/network.aliases.sh getvars cln $1)
|
||||||
|
|
||||||
# run interactive if 'turn on' && no further parameters
|
# run interactive if 'turn on' && no further parameters
|
||||||
if [ ${#newName} -eq 0 ]; then
|
if [ ${#newName} -eq 0 ]; then
|
||||||
@@ -31,7 +31,7 @@ fi
|
|||||||
blitzConfig="/mnt/hdd/raspiblitz.conf"
|
blitzConfig="/mnt/hdd/raspiblitz.conf"
|
||||||
|
|
||||||
# cln conf file
|
# cln conf file
|
||||||
clnConfig="/home/bitcoin/.lightning/${netprefix}config"
|
clnConfig="${CLNCONF}"
|
||||||
|
|
||||||
# check if raspiblitz config file exists
|
# check if raspiblitz config file exists
|
||||||
if [ ! -f ${blitzConfig} ]; then
|
if [ ! -f ${blitzConfig} ]; then
|
||||||
|
Reference in New Issue
Block a user