about summary refs log tree commit diff stats
path: root/tools/scripts/install-nginx.sh
diff options
context:
space:
mode:
authorSilvino Silva <silvino@bk.ru>2016-10-03 22:51:38 +0100
committerSilvino Silva <silvino@bk.ru>2016-10-03 22:51:38 +0100
commit379026a16e1444c16286146e82273efc3c0517e2 (patch)
tree0aa945da5a98a0a1d837ff55338800d0a46db820 /tools/scripts/install-nginx.sh
parentdc2392c0420d3e25771a4bc1967ae97cba16194d (diff)
parentc30b14dbcfb60418a0d7fd050a096c9bc20a380b (diff)
downloaddoc-379026a16e1444c16286146e82273efc3c0517e2.tar.gz
Merge release '0.2.3' into develop
0.2.3
Diffstat (limited to 'tools/scripts/install-nginx.sh')
-rw-r--r--tools/scripts/install-nginx.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/scripts/install-nginx.sh b/tools/scripts/install-nginx.sh
index 7fee79b..decacc1 100644
--- a/tools/scripts/install-nginx.sh
+++ b/tools/scripts/install-nginx.sh
@@ -6,6 +6,9 @@ prt-get depinst nginx
 
 cp -R $CONF_DIR/etc/nginx/* /etc/nginx/
 
+mkdir /srv/www
+chown nginx:www /srv/www
+
 usermod -a -G www nginx
 usermod -m -d /srv/www nginx
 
@@ -18,3 +21,4 @@ openssl x509 -req -days 365 \
 
 cp /etc/ssl/keys/nginx.key /etc/ssl/keys/nginx.key.pass
 openssl rsa -in /etc/ssl/keys/nginx.key.pass -out /etc/ssl/keys/nginx.key
+