summaryrefslogtreecommitdiffstats
path: root/debian/lldpd.postinst
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 18:02:34 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 18:02:34 +0000
commitbb62f0cd14029a6ea4f3f38b00f9eb812011079c (patch)
treede63c1a14f53c55736ca35c4779000ff3c066316 /debian/lldpd.postinst
parentAdding upstream version 1.0.18. (diff)
downloadlldpd-bb62f0cd14029a6ea4f3f38b00f9eb812011079c.tar.xz
lldpd-bb62f0cd14029a6ea4f3f38b00f9eb812011079c.zip
Adding debian version 1.0.18-1.debian/1.0.18-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/lldpd.postinst')
-rw-r--r--debian/lldpd.postinst20
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/lldpd.postinst b/debian/lldpd.postinst
new file mode 100644
index 0000000..a1b2266
--- /dev/null
+++ b/debian/lldpd.postinst
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+ configure|reconfigure)
+ adduser --system --disabled-password --disabled-login --home /run/lldpd \
+ --no-create-home --quiet --force-badname --group _lldpd
+
+ for i in /usr/sbin/lldpcli; do
+ if ! dpkg-statoverride --list $i > /dev/null 2>&1; then
+ dpkg-statoverride --update --add _lldpd adm 4750 $i
+ fi
+ done
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0