summaryrefslogtreecommitdiff
path: root/scripts/publish.sh
diff options
context:
space:
mode:
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