summaryrefslogtreecommitdiff
path: root/bin/ftpsync
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ftpsync')
-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"