diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 19:37:09 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 19:37:09 +0000 |
commit | 2d0d5aeaf12b3d258db900523710db7c9db73018 (patch) | |
tree | 2faf74016289936f4c843074be9299764e39e930 /debian/nghttp2-proxy.postinst | |
parent | Adding upstream version 1.59.0. (diff) | |
download | nghttp2-debian/1.59.0-1.tar.xz nghttp2-debian/1.59.0-1.zip |
Adding debian version 1.59.0-1.debian/1.59.0-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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 |