]> git.treefish.org Git - backmeupscotty.git/blobdiff - backmeupscotty
Fixed lockdir path.
[backmeupscotty.git] / backmeupscotty
index be1ce209a4de43dba7ad413ce52cc98a3d9f0fc9..68afaf6d591cb50e72a24b5e54d95097dcd4d917 100644 (file)
@@ -126,15 +126,11 @@ function scottysync {
 }
 
 function deleteLock {
 }
 
 function deleteLock {
-    if ! rmdir /tmp/$(basename $0).lock; then
+    if ! rmdir /var/run/$(basename $0).lock; then
        scottyerror "Could not delete lockfile /tmp/$(basename $0).lock!"
     fi
 }
 
        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."
 
 function cleanup_abort {
     scottyerror "Caught exit signal! Cleaning up."
 
@@ -213,7 +209,7 @@ function backmeupscotty {
     exit 0
 }
 
     exit 0
 }
 
-if ! mkdir /tmp/$(basename $0).lock; then
+if ! mkdir /var/run/$(basename $0).lock; then
     scottyerror "Another instance of $(basename $0) is still running!"
     exit 1
 else
     scottyerror "Another instance of $(basename $0) is still running!"
     exit 1
 else