From 94ff195a9e45e33f4afae842bc524d3b31e76094 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Tue, 4 Sep 2018 18:20:38 -0600 Subject: [PATCH] Added derived paths to files --- root/scripts/borgbackup.sh | 7 +++++++ 1 file changed, 7 insertions(+) mode change 100644 => 100755 root/scripts/borgbackup.sh diff --git a/root/scripts/borgbackup.sh b/root/scripts/borgbackup.sh old mode 100644 new mode 100755 index 2d9341c..de5d7a1 --- a/root/scripts/borgbackup.sh +++ b/root/scripts/borgbackup.sh @@ -96,3 +96,10 @@ fi echo -e "\e[1;32m[`date +%Y-%m-%d` `date +%H:%M:%S`]" \ "--Begin backup operations--\e[0m" >> $logFile +## Parse supplied variables and determine additional script vars +scriptPath="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +err503FullPath="$scriptPath/$err503FileName" + +## Export logfle location for use by external programs +export logFile="$logFile" +