summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJoerg Jaspert <joerg@debian.org>2008-10-02 20:17:33 +0200
committerJoerg Jaspert <joerg@debian.org>2008-10-02 20:17:33 +0200
commitddb3c9f2286f6e18dbaf9855dc28cb7fb82587fb (patch)
tree544473e0ef6373ed2735c102f96229602112de57 /bin
parenta2c36e80d5bdd1507df50558709f3eca421d88a3 (diff)
ftpsync
its helpful if we mkdir before we try to touch something in $TO Signed-off-by: Joerg Jaspert <joerg@debian.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ftpsync8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/ftpsync b/bin/ftpsync
index 3141e2a..2b6bc44 100755
--- a/bin/ftpsync
+++ b/bin/ftpsync
@@ -124,6 +124,10 @@ done
cd ${HOME}
umask 002
+# If we are here for the first time, create the
+# destination and the trace directory
+mkdir -p ${TO}/project/trace
+
# Used to make sure we will have the archive fully and completly synced before
# we stop, even if we get multiple pushes while this script is running.
# Otherwise we can end up with a half-synced archive:
@@ -133,10 +137,6 @@ umask 002
# - done. Archive not correctly synced, we don't have all the changes from the second push.
touch "${UPDATEREQUIRED}"
-# If we are here for the first time, create the
-# destination and the trace directory
-mkdir -p ${TO}/project/trace
-
# Check to see if another sync is in progress
if ${LOCKFILE} -! -l 43200 -r 0 "${LOCK}"; then
error "Unable to start rsync, lock file still exists"