Couple of debian fixes, cannot use variable expansions this way
This commit is contained in:
18
debian/bird-exporter.postinst
vendored
Executable file
18
debian/bird-exporter.postinst
vendored
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
case "$1" in
|
||||
configure)
|
||||
# Create bird user if it doesn't exist
|
||||
if ! getent passwd bird > /dev/null; then
|
||||
adduser --system --group --no-create-home \
|
||||
--home /nonexistent \
|
||||
--gecos "BIRD routing daemon" \
|
||||
bird
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user