diff options
| author | Jason D. McCormick <jason@mfamily.org> | 2026-01-20 19:16:02 -0500 |
|---|---|---|
| committer | Jason D. McCormick <jason@mfamily.org> | 2026-01-20 19:16:02 -0500 |
| commit | 2344881229dfa0f00ebf112653e1d48bb99999b1 (patch) | |
| tree | b673255a35cb063e28fc43ba9899f6dd361507ad /debian/postinst | |
| parent | 0b090aa51de563049f6108c17b6b063cac5c15c6 (diff) | |
initial add
Diffstat (limited to 'debian/postinst')
| -rw-r--r-- | debian/postinst | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/debian/postinst b/debian/postinst new file mode 100644 index 0000000..4284a9b --- /dev/null +++ b/debian/postinst @@ -0,0 +1,44 @@ +#!/bin/sh -e +# postinst script for allmon3 +# +# see: dh_installdeb(1) + +# summary of how this script can be called: +# * <postinst> `configure' <most-recently-configured-version> +# * <old-postinst> `abort-upgrade' <new version> +# * <conflictor's-postinst> `abort-remove' `in-favour' <package> +# <new-version> +# * <postinst> `abort-remove' +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' +# <failed-install-package> <version> `removing' +# <conflicting-package> <version> +# for details, see https://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +do_configure() { + dh_systemd_enable blocklist2nft.timer + dh_systemd_start blocklist2nft.timer + /usr/bin/blocklist2nft +} + +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 + |
