mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-21 14:11:06 +02:00
add quotes
This commit is contained in:
@@ -12,7 +12,7 @@ if [ $# -lt 1 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ];then
|
|||||||
echo "Install, remove, connect or get info about the Sparko plugin for C-lightning"
|
echo "Install, remove, connect or get info about the Sparko plugin for C-lightning"
|
||||||
echo "version: $SPARKOVERSION"
|
echo "version: $SPARKOVERSION"
|
||||||
echo "Usage:"
|
echo "Usage:"
|
||||||
echo "cl-plugin.sparko.sh [on|off|menu|connect] [testnet|mainnet|signet]"
|
echo "cl-plugin.sparko.sh [on|off|menu|connect] [testnet|mainnet|signet] [norestart]"
|
||||||
echo
|
echo
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@@ -104,7 +104,7 @@ if [ $1 = connect ];then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $1 = on ];then
|
if [ "$1" = "on" ];then
|
||||||
echo "# Detect CPU architecture ..."
|
echo "# Detect CPU architecture ..."
|
||||||
isARM=$(uname -m | grep -c 'arm')
|
isARM=$(uname -m | grep -c 'arm')
|
||||||
isAARCH64=$(uname -m | grep -c 'aarch64')
|
isAARCH64=$(uname -m | grep -c 'aarch64')
|
||||||
@@ -176,7 +176,7 @@ sparko-keys=${masterkeythatcandoeverything}; ${secretaccesskeythatcanreadstuff}:
|
|||||||
sudo sed -i "s/^${netprefix}sparko=.*/${netprefix}sparko=on/g" /mnt/hdd/raspiblitz.conf
|
sudo sed -i "s/^${netprefix}sparko=.*/${netprefix}sparko=on/g" /mnt/hdd/raspiblitz.conf
|
||||||
|
|
||||||
source /home/admin/raspiblitz.info
|
source /home/admin/raspiblitz.info
|
||||||
if [ "${state}" == "ready" ]; then
|
if [ "${state}" == "ready" ] && [ "$3" != "norestart" ]; then
|
||||||
echo "# Restart the ${netprefix}lightningd.service to activate Sparko"
|
echo "# Restart the ${netprefix}lightningd.service to activate Sparko"
|
||||||
sudo systemctl restart ${netprefix}lightningd
|
sudo systemctl restart ${netprefix}lightningd
|
||||||
fi
|
fi
|
||||||
@@ -188,7 +188,7 @@ sparko-keys=${masterkeythatcandoeverything}; ${secretaccesskeythatcanreadstuff}:
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $1 = off ];then
|
if [ "$1" = "off" ];then
|
||||||
# delete symlink
|
# delete symlink
|
||||||
sudo rm -rf /home/bitcoin/${netprefix}cl-plugins-enabled/sparko
|
sudo rm -rf /home/bitcoin/${netprefix}cl-plugins-enabled/sparko
|
||||||
|
|
||||||
|
@@ -16,7 +16,7 @@ if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ];then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $1 = on ];then
|
if [ "$1" = "on" ];then
|
||||||
|
|
||||||
source <(/home/admin/config.scripts/network.aliases.sh getvars cl $3)
|
source <(/home/admin/config.scripts/network.aliases.sh getvars cl $3)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user