mirror of
https://github.com/notherealmarco/coredns-deployment.git
synced 2025-03-14 14:16:16 +01:00
Add postinst for user creation (#25)
This commit is contained in:
parent
7a53c3e6de
commit
5e6be8673a
1 changed files with 16 additions and 0 deletions
16
debian/coredns.postinst
vendored
Normal file
16
debian/coredns.postinst
vendored
Normal 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
|
Loading…
Reference in a new issue