From f90df49a21415aa8266fb45242495a926e458346 Mon Sep 17 00:00:00 2001 From: "Jason D. McCormick" Date: Wed, 20 Dec 2023 20:37:13 -0500 Subject: add --- debian/postinst | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 debian/postinst (limited to 'debian') diff --git a/debian/postinst b/debian/postinst new file mode 100644 index 0000000..342fea3 --- /dev/null +++ b/debian/postinst @@ -0,0 +1,47 @@ +#!/bin/sh -e +# postinst script for allmon3 +# +# see: dh_installdeb(1) + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see https://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then + . /usr/share/apache2/apache2-maintscript-helper +fi + +do_configure() { + ## Fix key perms + chmod 400 /etc/mf-backup +} + +case "$1" in + configure) + do_configure + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + -- cgit v1.2.3