summaryrefslogtreecommitdiff
path: root/scripts/publish.sh
diff options
context:
space:
mode:
authorAJ <scisco@users.noreply.github.com>2014-07-17 15:57:26 -0400
committerAJ <scisco@users.noreply.github.com>2014-07-17 15:57:26 -0400
commit086585c95574596765f9ce15bef0ff539b2cd6e5 (patch)
treee7584d93b1e1680231f0f98810fa990b0f7d47e3 /scripts/publish.sh
parentea87493f9a91a0d853ea6dd5f6e4a25cb9d536db (diff)
parent54d4b6cc127a786506cbf4b0abc0ee8e8cc55c56 (diff)
Merge pull request #16 from developmentseed/improvements
Making jekyll-hook compatible with Ubuntu 14.0
Diffstat (limited to 'scripts/publish.sh')
-rwxr-xr-xscripts/publish.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/publish.sh b/scripts/publish.sh
index 82e728b..38b2143 100755
--- a/scripts/publish.sh
+++ b/scripts/publish.sh
@@ -13,8 +13,10 @@ source=$5
build=$6
# Set the path of the hosted site
-site="/usr/share/nginx/www/$repo"
+site="/usr/share/nginx/html/$repo"
# Remove old site files, move new ones in place
+# On amazon EC2 use sudo if nginx html forlder has root ownership
+
rm -rf $site
mv $build $site