|
|
|
|
@ -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
|
|
|
|
|
|