diff options
Diffstat (limited to '')
-rwxr-xr-x | debian/nghttp2-proxy.postinst | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/debian/nghttp2-proxy.postinst b/debian/nghttp2-proxy.postinst new file mode 100755 index 0000000..a28f72e --- /dev/null +++ b/debian/nghttp2-proxy.postinst @@ -0,0 +1,15 @@ +#!/bin/sh +set -e + +#DEBHELPER# + +if [ -x /etc/init.d/nghttpx ]; then + if [ -f /run/nghttpx.pid ] && pidof /usr/sbin/nghttpx >/dev/null; then + invoke-rc.d nghttpx upgrade || invoke-rc.d nghttpx restart + exit $? + else + invoke-rc.d nghttpx start || exit $? + fi +fi + +exit 0 |