From 292dc3c1b83db41b1c0eb182fa75dab5807e2daf Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Thu, 25 Oct 2018 04:17:15 -0600 Subject: [PATCH] added explict PATH export so script can access docker-compose in crontab --- root/scripts/backup.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/root/scripts/backup.sh b/root/scripts/backup.sh index 954b3de..7e599ee 100644 --- a/root/scripts/backup.sh +++ b/root/scripts/backup.sh @@ -438,6 +438,9 @@ echo -e "${info}${stamp} -- [INFO] using ${lit}${dockerComposeFilePath}" \ ### Import additional variables from mailcow configuration file source "${mailcowConfigFilePath}" +### Export PATH so this script can access all docker and docker-compose commands +export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin + ### Export logFile variable for use by Borg export logFile="$logFile"