summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2015-05-13 04:02:19 +0200
committerChristian Pointner <equinox@spreadspace.org>2015-05-13 04:02:19 +0200
commitcd96f60dbd15b2c8c5faf3167233b64b1e0af9f8 (patch)
treef40aa12587d0e228f03869ab9ac23fdd8858bd1c
parentadded systemd support (diff)
fixed maintainer scripts
-rwxr-xr-xdebian/postinst8
-rwxr-xr-xdebian/postrm6
-rwxr-xr-xdebian/prerm12
3 files changed, 8 insertions, 18 deletions
diff --git a/debian/postinst b/debian/postinst
index a01c74c..9d6f22e 100755
--- a/debian/postinst
+++ b/debian/postinst
@@ -3,10 +3,10 @@
set -e
-if [ -x "/etc/init.d/tcpproxy" ]; then
- update-rc.d tcpproxy defaults >/dev/null
-fi
-
if [ "$1" = "configure" ]; then
adduser --quiet --system --group --no-create-home --home /var/run/tcpproxy tcpproxy
fi
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/postrm b/debian/postrm
index 021bc5b..a88b49e 100755
--- a/debian/postrm
+++ b/debian/postrm
@@ -3,9 +3,9 @@
set -e
-if [ "$1" = "purge" ] ; then
- update-rc.d tcpproxy remove >/dev/null || exit $?
+#DEBHELPER#
+if [ "$1" = "purge" ] ; then
if [ -x "$(command -v deluser)" -a -x "$(command -v delgroup)" ]; then
deluser --quiet --system tcpproxy || true
delgroup --quiet --system tcpproxy || true
@@ -13,3 +13,5 @@ if [ "$1" = "purge" ] ; then
echo "Not removing tcpproxy user and group: adduser package not found." >&2
fi
fi
+
+exit 0
diff --git a/debian/prerm b/debian/prerm
deleted file mode 100755
index 620347f..0000000
--- a/debian/prerm
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/sh
-# prerm script for tcpproxy
-
-set -e
-
-if [ -x "/etc/init.d/tcpproxy" ] && [ "$1" = remove ]; then
- if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
- invoke-rc.d tcpproxy stop || true
- else
- /etc/init.d/tcpproxy stop || true
- fi
-fi