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