From ddb3c9f2286f6e18dbaf9855dc28cb7fb82587fb Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Thu, 2 Oct 2008 20:17:33 +0200 Subject: ftpsync its helpful if we mkdir before we try to touch something in $TO Signed-off-by: Joerg Jaspert --- bin/ftpsync | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bin') 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" -- cgit v1.2.3