summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorJoe Rayhawk <jrayhawk@fairlystable.org>2025-05-19 13:10:34 -0700
committerJoe Rayhawk <jrayhawk@fairlystable.org>2025-05-19 13:10:34 -0700
commit5b1d3075e7a123761335bc196d38485fed7c90dd (patch)
tree45e7a143755c704e03f32c11524564fada5ce93e /debian
parent326d9f4a7a1685d04d1f6b5fb3402bca2d23d4df (diff)
downloadiptables-rrdtool-master.tar.gz
iptables-rrdtool-master.zip
fix install/purge hooksHEADmaster
Diffstat (limited to 'debian')
-rw-r--r--debian/fswarn.postinst18
-rw-r--r--debian/iptables-rrdtool.postinst18
-rw-r--r--debian/iptables-rrdtool.postrm (renamed from debian/fswarn.postrm)0
3 files changed, 18 insertions, 18 deletions
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/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/fswarn.postrm b/debian/iptables-rrdtool.postrm
index f7b1a11..f7b1a11 100644
--- a/debian/fswarn.postrm
+++ b/debian/iptables-rrdtool.postrm