From d34b47e7054695828c29f911bf273d3ac3f8b7dc Mon Sep 17 00:00:00 2001 From: Alex Kelly Date: Tue, 17 Jan 2023 10:24:16 -0500 Subject: [PATCH] fix: move source env call so that all settings can be overridden --- backup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backup.sh b/backup.sh index 90a40f5..f714ad2 100755 --- a/backup.sh +++ b/backup.sh @@ -17,8 +17,6 @@ RETENTION_WEEKS=4 RETENTION_MONTHS=3 RETENTION_YEARS=1 -source /etc/restic/env - # Paths to binaries CURL="/usr/bin/curl" FIND="/usr/bin/find" @@ -27,6 +25,8 @@ ECHO="/usr/bin/echo" HOST=$(hostname -s) +source /etc/restic/env + # define functions timestamp () { date "+%Y-%m-%d %H:%M:%S"