| 1 |
#!/bin/sh |
| 2 |
set -e |
| 3 |
|
| 4 |
if [ "$1" = "configure" ]; then |
| 5 |
|
| 6 |
if ! getent passwd bird > /dev/null; then |
| 7 |
adduser --quiet --system --group --no-create-home --home /run/bird bird |
| 8 |
fi |
| 9 |
|
| 10 |
dpkg-statoverride --list /etc/bird > /dev/null || dpkg-statoverride --update --add bird bird 0750 /etc/bird |
| 11 |
|
| 12 |
ucf /usr/share/bird3/bird.conf /etc/bird/bird.conf |
| 13 |
ucfr -f bird3 /etc/bird/bird.conf |
| 14 |
dpkg-statoverride --list /etc/bird/bird.conf > /dev/null || dpkg-statoverride --update --add bird bird 0640 /etc/bird/bird.conf |
| 15 |
fi |
| 16 |
|
| 17 |
#DEBHELPER# |
| 18 |
|
| 19 |
exit 0 |