From 5b1d3075e7a123761335bc196d38485fed7c90dd Mon Sep 17 00:00:00 2001 From: Joe Rayhawk Date: Mon, 19 May 2025 13:10:34 -0700 Subject: fix install/purge hooks --- debian/fswarn.postinst | 18 ------------------ debian/fswarn.postrm | 15 --------------- debian/iptables-rrdtool.postinst | 18 ++++++++++++++++++ debian/iptables-rrdtool.postrm | 15 +++++++++++++++ 4 files changed, 33 insertions(+), 33 deletions(-) delete mode 100644 debian/fswarn.postinst delete mode 100644 debian/fswarn.postrm create mode 100644 debian/iptables-rrdtool.postinst create mode 100644 debian/iptables-rrdtool.postrm diff --git a/debian/fswarn.postinst b/debian/fswarn.postinst deleted file mode 100644 index a22b368..0000000 --- a/debian/fswarn.postinst +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh - -set -e - -case "$1" in - - configure) - - if [ "$2" = "" ]; then - mkdir /var/lib/iptables-rrdtool || true - fi - - ;; - - *) - ;; - -esac diff --git a/debian/fswarn.postrm b/debian/fswarn.postrm deleted file mode 100644 index f7b1a11..0000000 --- a/debian/fswarn.postrm +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh - -set -e - -case "$1" in - - purge) - rm -r /var/lib/iptables-rrdtool || true - ;; - - *) - ;; - -esac - diff --git a/debian/iptables-rrdtool.postinst b/debian/iptables-rrdtool.postinst new file mode 100644 index 0000000..43ed155 --- /dev/null +++ b/debian/iptables-rrdtool.postinst @@ -0,0 +1,18 @@ +#!/bin/sh + +set -e + +case "$1" in + + configure) + + if ! [ -d /var/lib/iptables-rrdtool ]; then + mkdir -p /var/lib/iptables-rrdtool + fi + + ;; + + *) + ;; + +esac diff --git a/debian/iptables-rrdtool.postrm b/debian/iptables-rrdtool.postrm new file mode 100644 index 0000000..f7b1a11 --- /dev/null +++ b/debian/iptables-rrdtool.postrm @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e + +case "$1" in + + purge) + rm -r /var/lib/iptables-rrdtool || true + ;; + + *) + ;; + +esac + -- cgit v1.2.3