From 683695e02629e985b0ed0093a0b667f4c8395934 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 21 Aug 2018 13:01:54 +0200 Subject: [borg] Actually use $BORG_VERSION --- borgbackup/create-repo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'borgbackup') diff --git a/borgbackup/create-repo b/borgbackup/create-repo index 6a6c7dd..52e86be 100755 --- a/borgbackup/create-repo +++ b/borgbackup/create-repo @@ -83,11 +83,11 @@ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin $(( RANDOM % 60 )) $(( RANDOM % 5 )) * * * root /opt/scripts/borg-backup.sh BLUB -echo "Downloading borg 1.1.7....." +echo "Downloading borg ${BORG_VERSION}....." mkdir -p "/usr/local/bin" ARC=32 [ "\$(uname -m)" = "x86_64" ] && ARC=64 -[ -x "/usr/local/bin/borg" ] || wget -O "/usr/local/bin/borg" "https://github.com/borgbackup/borg/releases/download/1.1.7/borg-linux\$ARC" +[ -x "/usr/local/bin/borg" ] || wget -O "/usr/local/bin/borg" "https://github.com/borgbackup/borg/releases/download/$BORG_VERSION/borg-linux\$ARC" chmod +x "/usr/local/bin/borg" export BORG_RSH="ssh -a -k -oStrictHostKeyChecking=no" export BORG_PASSPHRASE=hello -- cgit v1.2.3-55-g7522