X-Git-Url: http://git.treefish.org/~alex/backmeupscotty.git/blobdiff_plain/5c8e1209ef263877c5d6fa0e00386c48c0b241ea..5e8b95f582e1327273442cc2ad0388aec5165d9c:/backmeupscotty?ds=inline diff --git a/backmeupscotty b/backmeupscotty index be1ce20..1d09266 100644 --- a/backmeupscotty +++ b/backmeupscotty @@ -126,15 +126,11 @@ function scottysync { } function deleteLock { - if ! rmdir /tmp/$(basename $0).lock; then + if ! rmdir /var/lock/$(basename $0); then scottyerror "Could not delete lockfile /tmp/$(basename $0).lock!" fi } -function prepare { - scottyinfo "Preparing for sync." -} - function cleanup_abort { scottyerror "Caught exit signal! Cleaning up." @@ -213,7 +209,7 @@ function backmeupscotty { exit 0 } -if ! mkdir /tmp/$(basename $0).lock; then +if ! mkdir /var/lock/$(basename $0); then scottyerror "Another instance of $(basename $0) is still running!" exit 1 else