diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-02-19 17:05:41 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-02-19 17:05:41 +0000 |
commit | b04ca9b563fec782ae53e17e8ae8823af7c86585 (patch) | |
tree | 1844e17426c123325a272e63827bb8d9f6fe9347 | |
parent | Silencing user and group removals in deluged postrm. (diff) | |
download | deluge-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-x | debian/deluged.postinst | 5 |
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 |