mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-23 14:40:45 +01:00
cln-backup: use the version before poetry
This commit is contained in:
parent
84ef6ea73f
commit
dbbca1f7aa
1 changed files with 7 additions and 1 deletions
|
@ -15,6 +15,10 @@ function help(){
|
|||
exit 1
|
||||
}
|
||||
|
||||
# https://github.com/lightningd/plugins/commits/master/backup
|
||||
# use the version beore the migration to poetry
|
||||
pinnedVersion="3da5778dcf408ff075515b4956aef405aa18f81a"
|
||||
|
||||
# command info
|
||||
if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ];then
|
||||
help
|
||||
|
@ -30,6 +34,8 @@ function install() {
|
|||
cd /home/bitcoin/cl-plugins-available || exit 1
|
||||
sudo -u bitcoin git clone https://github.com/lightningd/plugins.git
|
||||
fi
|
||||
cd ${plugindir} || exit 1
|
||||
sudo -u bitcoin git reset --hard ${pinnedVersion}
|
||||
|
||||
if [ $($lightningcli_alias plugin list 2>/dev/null | grep -c "${plugin}") -eq 0 ];then
|
||||
echo "# Checking dependencies"
|
||||
|
@ -112,7 +118,7 @@ elif [ "$1" = restore ];then
|
|||
|
||||
# https://github.com/lightningd/plugins/tree/master/backup#restoring-a-backup
|
||||
# ./backup-cli restore file:///mnt/external/location ~/.lightning/bitcoin/lightningd.sqlite3
|
||||
|
||||
|
||||
# make sure to not overwrite old database
|
||||
if sudo ls /home/bitcoin/.lightning/${CLNETWORK}/lightningd.sqlite3;then
|
||||
now=$(date +"%Y_%m_%d_%H%M%S")
|
||||
|
|
Loading…
Add table
Reference in a new issue