diff --git a/bin/publish b/bin/publish index 760119f..51ecead 100755 --- a/bin/publish +++ b/bin/publish @@ -88,6 +88,13 @@ echo $VERSION > VERSION # UPLOAD ###################################################################### +ssh -t -t ${USER}@${SERVER} <<-ENDSSH + cd ${REMOTE_DIR} + sudo chown -R ${USER}:apache . + exit +ENDSSH + + # Delete is dangerous, as we're using a file-based database # so we must exclude some directories and files. echo -e "${Green}Uploading files...${Off}" @@ -105,6 +112,12 @@ rsync -r --delete \ . ${USER}@${SERVER}:${REMOTE_DIR} +ssh -t -t ${USER}@${SERVER} <<-ENDSSH + cd ${REMOTE_DIR} + sudo chown -R mbouchemit:apache . + exit +ENDSSH + # REMOTE CLEANUP ############################################################## # Run some scripts on the server, now -- libgit2 0.21.2