From 43892e8c1f30b29762315276970ca34506fd5e82 Mon Sep 17 00:00:00 2001 From: Lionel Coupouchetty-Ramouchetty Date: Wed, 4 Mar 2020 07:46:32 +0100 Subject: [PATCH] Kill restic process when updating Otherwise it blocks the update --- scripts/_common.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/_common.sh b/scripts/_common.sh index 3144a6c..a4b60ba 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -33,6 +33,7 @@ install_restic () { expected_sum=$(grep restic_${RESTIC_VERSION}_linux_${arch}.bz2 /tmp/restic-sha256sums | awk '{print $1}') sum=$(sha256sum /tmp/restic.bz2 | awk '{print $1}') if [ "$sum" == "$expected_sum" ];then + pkill restic || true bunzip2 /tmp/restic.bz2 -f -c > /usr/local/bin/restic chmod +x /usr/local/bin/restic else