summaryrefslogtreecommitdiffstats
path: root/borgbackup/create-repo
diff options
context:
space:
mode:
authorSimon Rettberg2018-08-21 13:01:54 +0200
committerSimon Rettberg2018-08-21 13:01:54 +0200
commit683695e02629e985b0ed0093a0b667f4c8395934 (patch)
treeced00c65edfb7dc1dac23bbf84fbc395b2a63c32 /borgbackup/create-repo
parent[borg] Fix cronjob: PATH was missing (diff)
downloadsetup-scripts-683695e02629e985b0ed0093a0b667f4c8395934.tar.gz
setup-scripts-683695e02629e985b0ed0093a0b667f4c8395934.tar.xz
setup-scripts-683695e02629e985b0ed0093a0b667f4c8395934.zip
[borg] Actually use $BORG_VERSION
Diffstat (limited to 'borgbackup/create-repo')
-rwxr-xr-xborgbackup/create-repo4
1 files changed, 2 insertions, 2 deletions
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