summaryrefslogtreecommitdiffstats
path: root/debian/netdata-apache2.postinst
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 11:08:08 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 11:08:08 +0000
commitba729bd1d3089ba48b57ff6cab7e4ca21ccb4146 (patch)
tree156030137bdda66d88a8ae3d033ecf55d1c141da /debian/netdata-apache2.postinst
parentAdding upstream version 1.29.3. (diff)
downloadnetdata-ba729bd1d3089ba48b57ff6cab7e4ca21ccb4146.tar.xz
netdata-ba729bd1d3089ba48b57ff6cab7e4ca21ccb4146.zip
Adding debian version 1.29.3-4.debian/1.29.3-4debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-xdebian/netdata-apache2.postinst31
1 files changed, 31 insertions, 0 deletions
diff --git a/debian/netdata-apache2.postinst b/debian/netdata-apache2.postinst
new file mode 100755
index 0000000..037bdca
--- /dev/null
+++ b/debian/netdata-apache2.postinst
@@ -0,0 +1,31 @@
+#!/bin/sh
+
+set -e
+
+case "${1}" in
+ configure)
+ if [ -e /usr/share/apache2/apache2-maintscript-helper ]
+ then
+ . /usr/share/apache2/apache2-maintscript-helper
+
+ apache2_invoke enmod proxy
+ apache2_invoke enmod proxy_http
+ apache2_invoke enmod rewrite
+
+ apache2_reload restart
+ fi
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`${1}'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0