nginx-sid/debian/nginx-core.prerm
Ondřej Nový 6982ab38dd Introduce nginx-core and make it new default for "nginx"
Version of nginx identical to that of nginx-full, but without
any third-party modules, and only modules in the original nginx
code base.
2020-06-04 22:33:03 +02:00

22 lines
324 B
Bash

#!/bin/sh
set -e
case "$1" in
remove|remove-in-favour|deconfigure|deconfigure-in-favour)
if [ -x /etc/init.d/nginx ]; then
invoke-rc.d nginx stop || exit $?
fi
;;
upgrade|failed-upgrade)
;;
*)
echo "prerm called with unknown argument \`$1'" >&2
exit 1
;;
esac
#DEBHELPER#
exit 0