From fc13574b6908bfbaf26d87a4150147fc4e669c7c Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Thu, 2 Dec 2021 16:58:51 +0100 Subject: [PATCH] [enh] Improve upgrade performances --- scripts/_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index ee3b656..53870b5 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -12,7 +12,7 @@ pkg_dependencies="python3-pip python3-dev libacl1-dev libssl-dev liblz4-dev pyth # Install borg with pip if borg is not here install_borg_with_pip () { if [ -d /opt/borg-env ]; then - /opt/borg-env/bin/python /opt/borg-env/bin/pip list | grep "Version: $BORG_VERSION" || ynh_secure_remove /opt/borg-env + /opt/borg-env/bin/python /opt/borg-env/bin/pip list | grep "borgbackup *$BORG_VERSION" || ynh_secure_remove /opt/borg-env fi if [ ! -d /opt/borg-env ]; then python3 -m venv /opt/borg-env