summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-02-19 17:05:41 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-02-19 17:05:41 +0000
commitb04ca9b563fec782ae53e17e8ae8823af7c86585 (patch)
tree1844e17426c123325a272e63827bb8d9f6fe9347
parentSilencing user and group removals in deluged postrm. (diff)
downloaddeluge-b04ca9b563fec782ae53e17e8ae8823af7c86585.tar.xz
deluge-b04ca9b563fec782ae53e17e8ae8823af7c86585.zip
Also creating deluged group if needed in deluged postinst script.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rwxr-xr-xdebian/deluged.postinst5
1 files changed, 5 insertions, 0 deletions
diff --git a/debian/deluged.postinst b/debian/deluged.postinst
index 3e043a9..fb3249b 100755
--- a/debian/deluged.postinst
+++ b/debian/deluged.postinst
@@ -12,6 +12,11 @@ Add_override ()
case "${1}" in
configure)
+ if ! getent group debian-deluged > /dev/null 2>&1
+ then
+ groupadd --system debian-deluged
+ fi
+
if ! getent passwd debian-deluged > /dev/null 2>&1
then
useradd --system -g debian-deluged --home-dir /var/lib/deluged debian-deluged