mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-25 19:21:57 +02:00
rename script tp cln.rest.sh
This commit is contained in:
@@ -265,7 +265,7 @@ EOF
|
|||||||
elif [ $LNTYPE = cln ];then
|
elif [ $LNTYPE = cln ];then
|
||||||
|
|
||||||
# clnrest
|
# clnrest
|
||||||
/home/admin/config.scripts/bonus.clnrest.sh on ${CHAIN}
|
/home/admin/config.scripts/cln.rest.sh on ${CHAIN}
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
# Systemd unit for ${netprefix}${typeprefix}RTL
|
# Systemd unit for ${netprefix}${typeprefix}RTL
|
||||||
@@ -377,7 +377,7 @@ if [ "$1" = "0" ] || [ "$1" = "off" ]; then
|
|||||||
sudo systemctl disable ${netprefix}${typeprefix}RTL
|
sudo systemctl disable ${netprefix}${typeprefix}RTL
|
||||||
sudo rm /etc/systemd/system/${netprefix}${typeprefix}RTL.service
|
sudo rm /etc/systemd/system/${netprefix}${typeprefix}RTL.service
|
||||||
if [ $LNTYPE = cln ];then
|
if [ $LNTYPE = cln ];then
|
||||||
/home/admin/config.scripts/bonus.clnrest.sh off ${CHAIN}
|
/home/admin/config.scripts/cln.rest.sh off ${CHAIN}
|
||||||
fi
|
fi
|
||||||
if [ "$(echo "$@" | grep -c purge)" -gt 0 ];then
|
if [ "$(echo "$@" | grep -c purge)" -gt 0 ];then
|
||||||
echo "# Removing the binaries"
|
echo "# Removing the binaries"
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# https://github.com/Ride-The-Lightning/c-lightning-REST/releases/
|
||||||
CLRESTVERSION="v0.4.4"
|
CLRESTVERSION="v0.4.4"
|
||||||
|
|
||||||
# help
|
# help
|
||||||
@@ -11,8 +12,8 @@ if [ $# -eq 0 ]||[ "$1" = "-h" ]||[ "$1" = "--help" ];then
|
|||||||
echo "mainnet / signet / testnet instances cannot run parallel"
|
echo "mainnet / signet / testnet instances cannot run parallel"
|
||||||
echo
|
echo
|
||||||
echo "usage:"
|
echo "usage:"
|
||||||
echo "bonus.clnrest.sh on <signet|testnet>"
|
echo "cln.rest.sh on <signet|testnet>"
|
||||||
echo "bonus.clnrest.sh off"
|
echo "cln.rest.sh off"
|
||||||
echo
|
echo
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@@ -47,11 +48,14 @@ else
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "# Running 'bonus.clnrest.sh $*'"
|
echo "# Running 'cln.rest.sh $*'"
|
||||||
|
|
||||||
if [ $1 = on ];then
|
if [ $1 = on ];then
|
||||||
echo "# Setting up c-lightning-REST for $NETWORK"
|
echo "# Setting up c-lightning-REST for $NETWORK"
|
||||||
|
|
||||||
|
sudo systemctl stop clnrest
|
||||||
|
sudo systemctl disable clnrest
|
||||||
|
|
||||||
cd /home/bitcoin || exit 1
|
cd /home/bitcoin || exit 1
|
||||||
sudo -u bitcoin git clone https://github.com/saubyk/c-lightning-REST
|
sudo -u bitcoin git clone https://github.com/saubyk/c-lightning-REST
|
||||||
cd c-lightning-REST || exit 1
|
cd c-lightning-REST || exit 1
|
Reference in New Issue
Block a user