summaryrefslogtreecommitdiffstats
path: root/debian/nghttp2-proxy.postinst
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 19:37:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 19:37:09 +0000
commit2d0d5aeaf12b3d258db900523710db7c9db73018 (patch)
tree2faf74016289936f4c843074be9299764e39e930 /debian/nghttp2-proxy.postinst
parentAdding upstream version 1.59.0. (diff)
downloadnghttp2-2d0d5aeaf12b3d258db900523710db7c9db73018.tar.xz
nghttp2-2d0d5aeaf12b3d258db900523710db7c9db73018.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 'debian/nghttp2-proxy.postinst')
-rwxr-xr-xdebian/nghttp2-proxy.postinst15
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