mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-10-09 20:32:52 +02:00
improve help and comments
This commit is contained in:
@@ -18,11 +18,11 @@ if [ $# -eq 0 ]||[ "$1" = "-h" ]||[ "$1" = "--help" ];then
|
|||||||
echo "C-lightning install script"
|
echo "C-lightning install script"
|
||||||
echo "the default version is: $CLVERSION"
|
echo "the default version is: $CLVERSION"
|
||||||
echo "setting up on ${chain}net unless otherwise specified"
|
echo "setting up on ${chain}net unless otherwise specified"
|
||||||
echo "mainnet / signet / testnet instances can run parallel"
|
echo "mainnet / testnet / signet instances can run parallel"
|
||||||
echo
|
echo
|
||||||
echo "usage:"
|
echo "usage:"
|
||||||
echo "cln.install.sh on <signet|testnet>"
|
echo "cln.install.sh on <mainnet|testnet|signet>"
|
||||||
echo "cln.install.sh off <signet|testnet> <purge>"
|
echo "cln.install.sh off <mainnet|testnet|signet> <purge>"
|
||||||
echo "cln.install.sh [update <version>|experimental|testPR <PRnumber>]"
|
echo "cln.install.sh [update <version>|experimental|testPR <PRnumber>]"
|
||||||
echo
|
echo
|
||||||
exit 1
|
exit 1
|
||||||
|
@@ -1,18 +1,22 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Usage:
|
# command info
|
||||||
# source <(/home/admin/config.scripts/network.aliases.sh getvars <lnd|cln> <mainnet|testnet|signet>)
|
if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ];then
|
||||||
# if no values given uses the default values from the raspiblitz.conf
|
echo "# Usage:"
|
||||||
|
echo "# source <(/home/admin/config.scripts/network.aliases.sh getvars <lnd|cln> <mainnet|testnet|signet>)"
|
||||||
# chain is: main | test ; from raspiblitz.conf or raspiblitz.info or defaults to main
|
echo "# if no values given uses the default values from the raspiblitz.conf"
|
||||||
|
echo
|
||||||
# LNTYPE is: lnd | cln ; default: lnd
|
echo "# chain is: main | test ; from raspiblitz.conf or raspiblitz.info or defaults to main"
|
||||||
# typeprefix is: "" | c
|
echo
|
||||||
|
echo "# LNTYPE is: lnd | cln ; default: lnd"
|
||||||
# CHAIN is: mainnet | testnet | signet
|
echo "# typeprefix is: "" | c"
|
||||||
# netprefix is: "" | t | s
|
echo
|
||||||
# portprefix is: "" | 1 | 3
|
echo "# CHAIN is: mainnet | testnet | signet"
|
||||||
# CLNETWORK is: bitcoin / signet / testnet
|
echo "# netprefix is: "" | t | s"
|
||||||
|
echo "# portprefix is: "" | 1 | 3"
|
||||||
|
echo "# CLNETWORK is: bitcoin / signet / testnet"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
source /home/admin/raspiblitz.info
|
source /home/admin/raspiblitz.info
|
||||||
source /mnt/hdd/raspiblitz.conf
|
source /mnt/hdd/raspiblitz.conf
|
||||||
@@ -40,7 +44,7 @@ if [ $1 = getvars ];then
|
|||||||
echo "typeprefix=${typeprefix}"
|
echo "typeprefix=${typeprefix}"
|
||||||
|
|
||||||
# from raspiblitz.conf or raspiblitz.info or defaults to main
|
# from raspiblitz.conf or raspiblitz.info or defaults to main
|
||||||
if [ ${#chain} -eq 0 ] || [ $3 = net ]; then
|
if [ ${#chain} -eq 0 ]; then
|
||||||
chain=main
|
chain=main
|
||||||
fi
|
fi
|
||||||
# CHAIN is: signet | testnet | mainnet
|
# CHAIN is: signet | testnet | mainnet
|
||||||
|
Reference in New Issue
Block a user