diff --git a/debian/ngcp-panel-nginx.postinst b/debian/ngcp-panel-nginx.postinst index 3bcc3b78c0..493c43eee0 100644 --- a/debian/ngcp-panel-nginx.postinst +++ b/debian/ngcp-panel-nginx.postinst @@ -15,6 +15,11 @@ case "$1" in ;; esac +# remove default debian site +if [ -e /etc/nginx/sites-enabled/default ]; then + rm /etc/nginx/sites-enabled/default +fi + # reload nginx if [ -x /etc/init.d/nginx ]; then if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then