Bug#1034755: x2gothinclient-common: about .postinst and .postrm scripts
Package: x2gothinclient-common
Version: 1.5.0.1-8.1
Followup-For: Bug #1034755
Dear Maintainer,
Here is a patch for the .postrm script useing deluser/delgroup on purge.
Regards,
Patrice
-- System Information:
Debian Release: 12.0
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.3.0-0-amd64 (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages x2gothinclient-common depends on:
ii adduser 3.132
ii x2goclient 4.1.2.2-2+b1
x2gothinclient-common recommends no packages.
x2gothinclient-common suggests no packages.
diff --git a/debian/x2gothinclient-common.postrm b/debian/x2gothinclient-common.postrm
index 1f7037c..0b12b3c 100755
--- a/debian/x2gothinclient-common.postrm
+++ b/debian/x2gothinclient-common.postrm
@@ -17,8 +17,8 @@ set -e
case "$1" in
purge)
- getent passwd x2gothinclient >/dev/null && deluser x2gothinclient
- getent group x2gothinclient >/dev/null && delgroup x2gothinclient
+ getent passwd x2gothinclient >/dev/null && deluser x2gothinclient || true
+ getent group x2gothinclient >/dev/null && delgroup x2gothinclient || true
rm -Rf /var/lib/x2gothinclient
Reply to: