diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 00:55:53 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 00:55:53 +0000 |
commit | 3d0386f27ca66379acf50199e1d1298386eeeeb8 (patch) | |
tree | f87bd4a126b3a843858eb447e8fd5893c3ee3882 /distro/arch/install | |
parent | Initial commit. (diff) | |
download | knot-resolver-upstream.tar.xz knot-resolver-upstream.zip |
Adding upstream version 3.2.1.upstream/3.2.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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 +} |