Add postinst for user creation (#25)

This commit is contained in:
Miek Gieben 2017-11-13 14:50:07 +00:00 committed by GitHub
parent 7a53c3e6de
commit 5e6be8673a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

16
debian/coredns.postinst vendored Normal file
View file

@ -0,0 +1,16 @@
#!/bin/sh
set -e
case "$1" in
configure)
if ! getent passwd coredns > /dev/null; then
adduser --system --disabled-password --disabled-login --home /var/lib/coredns \
--quiet --force-badname --group coredns
fi
;;
esac
#DEBHELPER#
exit 0