]> piware.de Git - bin.git/commitdiff
backup: add sbin to $PATH
authorMartin Pitt <martin.pitt@ubuntu.com>
Tue, 27 Dec 2016 09:57:51 +0000 (10:57 +0100)
committerMartin Pitt <martin@piware.de>
Sun, 22 Jan 2017 11:18:38 +0000 (12:18 +0100)
It's not in Fedora's cron environment

backup

diff --git a/backup b/backup
index 314fd74d884905e6e2b27682fee3c518d871e7b0..2f820ec566f593b87c006e614cfbbc9c5173580a 100755 (executable)
--- a/backup
+++ b/backup
@@ -2,6 +2,7 @@
 set -eu
 cd $HOME
 LOG=.cache/duplicity/log
+PATH=$PATH:/sbin:/usr/sbin
 
 # do backup every day
 if [ -e "$LOG" ] && [ $(( `date +%s` - `stat -c %Y $LOG` )) -lt 86300 ]; then