cln-backup: use the version before poetry

This commit is contained in:
openoms
2022-05-23 09:30:18 +02:00
parent 84ef6ea73f
commit dbbca1f7aa

View File

@@ -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"