You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ngcp-panel/debian/ngcp-panel.postinst

37 lines
705 B

#!/bin/sh
set -e
# don't do anything when called with other argument than configure
case "$1" in
configure)
;;
abort-upgrade|abort-remove|abort-deconfigure)
exit 0
;;
*)
echo "postinst called with unknown argument \$1'" >&2
exit 1
;;
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
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.
#DEBHELPER#
exit 0