projects
/
backups
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix paths etc
[backups/.git]
/
scripts
/
cron.sh
diff --git
a/scripts/cron.sh
b/scripts/cron.sh
index b4bf0214bccad94bf8f06ae49b899f13d0101390..d052bd93c876193d045f5f1e999518143ae6173b 100755
(executable)
--- a/
scripts/cron.sh
+++ b/
scripts/cron.sh
@@
-1,10
+1,10
@@
#!/bin/sh
#!/bin/sh
-export PATH=$(dirname $0):/bin:/usr/bin
+export PATH=$(dirname $0):/bin:/usr/bin
:/sbin
. config.sh
. config.sh
-if [ -n "$(find $lastbackupfile -mtime +14)" ]; then
+if [ -n "$(find $lastbackupfile -mtime +14)"
-o -n "$(cat $statusfile | grep -i incomplete)"
]; then
echo "Running backups from cron..."
exec pack-image.sh
fi
echo "Running backups from cron..."
exec pack-image.sh
fi