diff options
Diffstat (limited to 'distro/arch/install')
-rw-r--r-- | distro/arch/install | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/distro/arch/install b/distro/arch/install new file mode 100644 index 0000000..de23d59 --- /dev/null +++ b/distro/arch/install @@ -0,0 +1,15 @@ +post_install() { + getent group knot-resolver &>/dev/null || groupadd -r knot-resolver >/dev/null + getent passwd knot-resolver &>/dev/null || useradd -r -g knot-resolver -d /dev/null -s /bin/false -c knot-resolver knot-resolver >/dev/null + chown -R root:knot-resolver /etc/knot-resolver +} + +post_upgrade() { + chown -R root:knot-resolver /etc/knot-resolver +} + +post_remove() { + getent passwd knot-resolver &>/dev/null && userdel knot-resolver >/dev/null + getent group knot-resolver &>/dev/null && groupdel knot-resolver >/dev/null + true +} |