]> git.sesse.net Git - backup.sh/commitdiff
Delete lockfile on abort; we should try again automatically next night.
authorSteinar H. Gunderson <sesse@samfundet.no>
Sat, 4 Oct 2014 22:40:18 +0000 (00:40 +0200)
committerSteinar H. Gunderson <sesse@samfundet.no>
Sat, 4 Oct 2014 22:40:18 +0000 (00:40 +0200)
backup.sh

index 448972709d69d0d1ab4f413310244bd51c1a4386..5c240aa87ed6c74f1c48f27d0b9491b78901cd2e 100755 (executable)
--- a/backup.sh
+++ b/backup.sh
@@ -47,7 +47,8 @@ fi
 
 # Die more or less gracefully (at least notify user)
 die() {
-       echo `date`": Something nasty happened. Ending, and not deleting lockfile $LOCKFILE."
+       echo `date`": Something nasty happened."
+       rm $LOCKFILE
        exit 1
 }