From 6a1771a2debbcab406dde936b2bdf5c0b893f3f8 Mon Sep 17 00:00:00 2001 From: Victor Seva Date: Mon, 14 Oct 2013 09:44:58 +0200 Subject: [PATCH] MT#4121 create the link to enable fastcgi daemon on nginx --- debian/ngcp-www-csc.postinst | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/debian/ngcp-www-csc.postinst b/debian/ngcp-www-csc.postinst index 15d085f..aba9f60 100644 --- a/debian/ngcp-www-csc.postinst +++ b/debian/ngcp-www-csc.postinst @@ -27,7 +27,9 @@ if [ -e /etc/nginx/sites-enabled/default ]; then rm /etc/nginx/sites-enabled/default fi -if [ -e /etc/nginx/sites-enabled/ngcp-www-csc ]; then +if [ ! -e /etc/nginx/sites-enabled/ngcp-www-csc ]; then + echo "enabling ngcp-www-csc site" + ln -s /etc/nginx/sites-available/ngcp-www-csc /etc/nginx/sites-enabled/ # reload nginx if [ -x /etc/init.d/nginx ]; then if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then @@ -36,9 +38,6 @@ if [ -e /etc/nginx/sites-enabled/ngcp-www-csc ]; then /etc/init.d/nginx restart || true fi fi -else - # who has to create the link? ngcp-templates-[ce|pro]-www-csc? - echo "ngcp-www-csc is not enabled on nginx" fi # dh_installdeb will replace this with shell code automatically