Skip to content

Commit

Permalink
clnrest: use ${portprefix}3100 to avoid collusion
Browse files Browse the repository at this point in the history
  • Loading branch information
openoms committed Jan 31, 2024
1 parent b0a6a13 commit edc8ccf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions home.admin/config.scripts/bonus.rtl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,9 @@ WantedBy=multi-user.target
# Copy the rune and save it in a file which must be accessible to RTL. The content of the file must be LIGHTNING_RUNE="<your-rune>"

# blitz.conf.sh set [key] [value] [?conffile] <noquotes>
if ! grep "^clnrest-port=${portprefix}3010" "${CLCONF}" >/dev/null; then
echo "# setting clnrest-port=${portprefix}3010"
sudo /home/admin/config.scripts/blitz.conf.sh set "clnrest-port" "${portprefix}3010" "${CLCONF}" "noquotes"
if ! grep "^clnrest-port=${portprefix}3100" "${CLCONF}" >/dev/null; then
echo "# setting clnrest-port=${portprefix}3100"
sudo /home/admin/config.scripts/blitz.conf.sh set "clnrest-port" "${portprefix}3100" "${CLCONF}" "noquotes"
source /home/admin/raspiblitz.info
if [ "${state}" == "ready" ]; then
echo "# OK the system is ready so restarting ${netprefix}lightningd to activate the clnrest plugin"
Expand Down

0 comments on commit edc8ccf

Please sign in to comment.