Commit 582f42ddff47209c2340ee63947e781f9d98f0f2
1 parent
375dcd95
Exists in
master
and in
2 other branches
Add more sugar to the publication script.
Showing
1 changed file
with
13 additions
and
0 deletions
Show diff stats
bin/publish
@@ -88,6 +88,13 @@ echo $VERSION > VERSION | @@ -88,6 +88,13 @@ echo $VERSION > VERSION | ||
88 | 88 | ||
89 | # UPLOAD ###################################################################### | 89 | # UPLOAD ###################################################################### |
90 | 90 | ||
91 | +ssh -t -t ${USER}@${SERVER} <<-ENDSSH | ||
92 | + cd ${REMOTE_DIR} | ||
93 | + sudo chown -R ${USER}:apache . | ||
94 | + exit | ||
95 | +ENDSSH | ||
96 | + | ||
97 | + | ||
91 | # Delete is dangerous, as we're using a file-based database | 98 | # Delete is dangerous, as we're using a file-based database |
92 | # so we must exclude some directories and files. | 99 | # so we must exclude some directories and files. |
93 | echo -e "${Green}Uploading files...${Off}" | 100 | echo -e "${Green}Uploading files...${Off}" |
@@ -105,6 +112,12 @@ rsync -r --delete \ | @@ -105,6 +112,12 @@ rsync -r --delete \ | ||
105 | . ${USER}@${SERVER}:${REMOTE_DIR} | 112 | . ${USER}@${SERVER}:${REMOTE_DIR} |
106 | 113 | ||
107 | 114 | ||
115 | +ssh -t -t ${USER}@${SERVER} <<-ENDSSH | ||
116 | + cd ${REMOTE_DIR} | ||
117 | + sudo chown -R mbouchemit:apache . | ||
118 | + exit | ||
119 | +ENDSSH | ||
120 | + | ||
108 | # REMOTE CLEANUP ############################################################## | 121 | # REMOTE CLEANUP ############################################################## |
109 | 122 | ||
110 | # Run some scripts on the server, now | 123 | # Run some scripts on the server, now |