cln-plugin.backup: fix typo

This commit is contained in:
openoms 2021-09-08 08:48:03 +01:00
parent 2b9bc8448f
commit 02ca76490a
No known key found for this signature in database
GPG Key ID: 5BFB77609B081B65

View File

@ -9,6 +9,7 @@ function help(){
echo "cln-plugin.backup.sh [on|off] [testnet|mainnet|signet]"
echo "cln-plugin.backup.sh [restore] [testnet|mainnet|signet] [force]"
echo "cln-plugin.backup.sh [backup-compact] [testnet|mainnet|signet]"
echo "cln-plugin.backup.sh [check [testnet|mainnet|signet]"
echo
echo "https://github.com/lightningd/plugins/tree/master/backup"
echo
@ -79,9 +80,13 @@ if [ $1 = on ];then
echo "# Started the ${netprefix}lightningd.service"
fi
elif [ $1 = check ];then
elif [ $1 = off ];then
echo "# Removing the backup plugin"
¬ sudo rm -f /home/bitcoin/${netprefix}cln-plugins-enabled/backup.py
sudo rm -f /home/bitcoin/${netprefix}cln-plugins-enabled/backup.py
echo "# Backup the existing old backup on the SDcard"
now=$(date +"%Y_%m_%d_%H%M%S")
sudo mv /home/bitcoin/${netprefix}lightningd.sqlite3.backup \