diff --git a/debian/ngcp-panel.postinst b/debian/ngcp-panel.postinst index 2ad6e87e0c..4654f3bff8 100644 --- a/debian/ngcp-panel.postinst +++ b/debian/ngcp-panel.postinst @@ -27,15 +27,6 @@ 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 - invoke-rc.d nginx restart || true - else - /etc/init.d/nginx restart || true - fi -fi - # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. diff --git a/debian/ngcp-panel.preinst b/debian/ngcp-panel.preinst index ab7ac2984d..bb56c1f630 100644 --- a/debian/ngcp-panel.preinst +++ b/debian/ngcp-panel.preinst @@ -16,10 +16,6 @@ set -e case "$1" in install|upgrade) - if [ -e /etc/apache2/sites-enabled/ngcp-panel ]; then - echo "Deactivating ngcp-panel on apache" - rm /etc/apache2/sites-enabled/ngcp-panel - fi # fix tmp perms if [ -d /tmp/ngcp ]; then echo "fixing /tmp/ngcp dir perms" @@ -36,15 +32,6 @@ case "$1" in ;; esac -# restart apache -if [ -x /etc/init.d/apache2 ]; then - if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then - invoke-rc.d apache2 restart|| true - else - /etc/init.d/apache2 restart || true - fi -fi - # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts.