From 2344881229dfa0f00ebf112653e1d48bb99999b1 Mon Sep 17 00:00:00 2001 From: "Jason D. McCormick" Date: Tue, 20 Jan 2026 19:16:02 -0500 Subject: initial add --- debian/postinst | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 debian/postinst (limited to 'debian/postinst') 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: +# * `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 + +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 + -- cgit v1.2.3