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