]> git.ipfire.org Git - thirdparty/lldpd.git/blame - debian/lldpd.postinst
debian: synchronize packaging with Debian
[thirdparty/lldpd.git] / debian / lldpd.postinst
CommitLineData
b5562b23
VB
1#!/bin/sh -e
2
3if ! ([ "$1" = "configure" ] || [ "$1" = "reconfigure" ]); then
4 exit 0
5fi
6
7adduser --system --disabled-password --disabled-login --home /var/run/lldpd \
0acfcab3 8 --no-create-home --quiet --force-badname --group _lldpd
b5562b23 9
40116b40 10for i in /usr/sbin/lldpcli; do
33aced7a 11 if ! dpkg-statoverride --list $i > /dev/null 2>&1; then
93d25046 12 dpkg-statoverride --update --add _lldpd adm 4750 $i
33aced7a
VB
13 fi
14done
15
b5562b23
VB
16#DEBHELPER#
17
18exit 0