From fa95a3a713278a247a72ba87e0e24771fbe900f5 Mon Sep 17 00:00:00 2001 From: Adam Cooke Date: Fri, 5 May 2017 11:24:12 +0100 Subject: [PATCH] well obviously nginx can only happen after the app has been cloned --- script/install/ubuntu1604.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/script/install/ubuntu1604.sh b/script/install/ubuntu1604.sh index eb48b80..715df84 100644 --- a/script/install/ubuntu1604.sh +++ b/script/install/ubuntu1604.sh @@ -44,14 +44,6 @@ rabbitmqctl add_vhost /postal rabbitmqctl add_user postal p0stalpassw0rd rabbitmqctl set_permissions -p /postal postal ".*" ".*" ".*" -# -# nginx -# -cp /opt/postal/app/resource/nginx.cfg /etc/nginx/sites-available/default -mkdir /etc/nginx/ssl/ -openssl req -x509 -newkey rsa:4096 -keyout /etc/nginx/ssl/postal.key -out /etc/nginx/ssl/postal.crt -days 365 -nodes -subj "/C=GB/ST=Example/L=Example/O=Example/CN=example.com" -service nginx reload - # # User # @@ -67,6 +59,14 @@ postal initialize-config postal initialize postal start +# +# nginx +# +cp /opt/postal/app/resource/nginx.cfg /etc/nginx/sites-available/default +mkdir /etc/nginx/ssl/ +openssl req -x509 -newkey rsa:4096 -keyout /etc/nginx/ssl/postal.key -out /etc/nginx/ssl/postal.crt -days 365 -nodes -subj "/C=GB/ST=Example/L=Example/O=Example/CN=example.com" +service nginx reload + # # All done #