From 4d7a93c535ceeb720dc1873bfa61531099b611cb Mon Sep 17 00:00:00 2001 From: Jakob Odersky Date: Mon, 22 Oct 2018 04:02:44 -0700 Subject: Initial commit --- .../debian/crashbox-ip-config.postinst | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 packages/crashbox-config/debian/crashbox-ip-config.postinst (limited to 'packages/crashbox-config/debian/crashbox-ip-config.postinst') diff --git a/packages/crashbox-config/debian/crashbox-ip-config.postinst b/packages/crashbox-config/debian/crashbox-ip-config.postinst new file mode 100644 index 0000000..90e58d6 --- /dev/null +++ b/packages/crashbox-config/debian/crashbox-ip-config.postinst @@ -0,0 +1,40 @@ +#!/bin/sh +# postinst script for crashbox-ip-config +# +# see: dh_installdeb(1) + +set -e + +# 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 + + +case "$1" in + configure) + deb-systemd-invoke restart nginx + ;; + + 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