Package: release.debian.org
Severity: normal
User: release.debian....@packages.debian.org
Usertags: unblock

Please unblock package x2gobroker

[ Reason ]

In the context of #1035654, a few source packages (including this one)
still fail to purge remove without adduser installed. It also was
reported/discovered that the postrm script contained duplicate
delgroup/deluser calls.

[ Impact ]

We want to avoid the situation where a user removes the package, then
upgrades to apt that doesn't depend on adduser, then removes adduser and
then attempts to purge this package.

In addition to the adduser changes, the diff to testing also includes removal
of lsb-base and some debconf i18n updates (es.po, pt_BR.po).

[ Tests ]

For the adduser bit, see the script I posted in #1035654.

[ Risks ]
Low risk due to trivial changes (see end of this mail) and because of
low popcon number (below 25 votes).


[ Checklist ]
  [x] all changes are documented in the d/changelog
  [x] I reviewed all changes and I approve them
  [x] attach debdiff against the package in testing

[ Other info ]
None.

unblock x2gobroker/0.0.4.3-4

-  * Non-maintainer upload.
-  * No source change upload to rebuild with debhelper 13.10.
+  * debian/*.postrm:
+    + De-duplicate delgroup calls. Thanks to Patrice Duroux for highlighting
+      this. (Releates to #1035847).
 
- -- Michael Biebl <bi...@debian.org>  Sat, 15 Oct 2022 12:57:59 +0200
+ -- Mike Gabriel <sunwea...@debian.org>  Fri, 19 May 2023 10:54:13 +0200
+
+x2gobroker (0.0.4.3-3) unstable; urgency=medium
+
+  [ Johannes Schauer Marin Rodrigues ]
+  * debian/*.postrm:
+    + Ignore failures when evoking (possibly not installed) deluser. (Closes:
+      #1035847).
+
+  [ Mike Gabriel ]
+  * debian/po:
+    + Add Spanish debconf translation. Thanks to Camaleón. (Closes: #987522).
+    + Add Brazilian Portuguese debconf translation. Thanks to Paulo Henrique de
+      Lima Santana. (Closes: #1026413).
+  * debian/control:
+    + Drop from D: lsb-base (obsoleted package). Thanks, lintian.
+
+ -- Mike Gabriel <sunwea...@debian.org>  Tue, 16 May 2023 21:27:13 +0200
diff -Nru x2gobroker-0.0.4.3/debian/changelog 
x2gobroker-0.0.4.3/debian/changelog
--- x2gobroker-0.0.4.3/debian/changelog 2022-10-15 12:57:59.000000000 +0200
+++ x2gobroker-0.0.4.3/debian/changelog 2023-05-19 10:54:13.000000000 +0200
@@ -1,9 +1,27 @@
-x2gobroker (0.0.4.3-2.1) unstable; urgency=medium
+x2gobroker (0.0.4.3-4) unstable; urgency=medium
 
-  * Non-maintainer upload.
-  * No source change upload to rebuild with debhelper 13.10.
+  * debian/*.postrm:
+    + De-duplicate delgroup calls. Thanks to Patrice Duroux for highlighting
+      this. (Releates to #1035847).
 
- -- Michael Biebl <bi...@debian.org>  Sat, 15 Oct 2022 12:57:59 +0200
+ -- Mike Gabriel <sunwea...@debian.org>  Fri, 19 May 2023 10:54:13 +0200
+
+x2gobroker (0.0.4.3-3) unstable; urgency=medium
+
+  [ Johannes Schauer Marin Rodrigues ]
+  * debian/*.postrm:
+    + Ignore failures when evoking (possibly not installed) deluser. (Closes:
+      #1035847).
+
+  [ Mike Gabriel ]
+  * debian/po:
+    + Add Spanish debconf translation. Thanks to Camaleón. (Closes: #987522).
+    + Add Brazilian Portuguese debconf translation. Thanks to Paulo Henrique de
+      Lima Santana. (Closes: #1026413).
+  * debian/control:
+    + Drop from D: lsb-base (obsoleted package). Thanks, lintian.
+
+ -- Mike Gabriel <sunwea...@debian.org>  Tue, 16 May 2023 21:27:13 +0200
 
 x2gobroker (0.0.4.3-2) unstable; urgency=medium
 
diff -Nru x2gobroker-0.0.4.3/debian/control x2gobroker-0.0.4.3/debian/control
--- x2gobroker-0.0.4.3/debian/control   2021-11-15 15:17:01.000000000 +0100
+++ x2gobroker-0.0.4.3/debian/control   2023-05-16 22:01:37.000000000 +0200
@@ -150,7 +150,6 @@
 Depends:
  ${misc:Depends},
  adduser,
- lsb-base,
  python3,
  python3-setproctitle,
  python3-pampy,
@@ -181,7 +180,6 @@
 Depends:
  ${misc:Depends},
  adduser,
- lsb-base,
  python3,
  python3-setproctitle,
  python3-x2gobroker (>= ${source:Version}), python3-x2gobroker (<< 
${source:Version}.1~),
@@ -211,7 +209,6 @@
 Depends:
  ${misc:Depends},
  adduser,
- lsb-base,
  x2gobroker (>= ${source:Version}), x2gobroker (<< ${source:Version}.1~),
 Recommends:
  x2gobroker-authservice,
diff -Nru x2gobroker-0.0.4.3/debian/po/es.po x2gobroker-0.0.4.3/debian/po/es.po
--- x2gobroker-0.0.4.3/debian/po/es.po  1970-01-01 01:00:00.000000000 +0100
+++ x2gobroker-0.0.4.3/debian/po/es.po  2023-05-16 21:24:18.000000000 +0200
@@ -0,0 +1,159 @@
+# x2gobroker po-debconf translation to Spanish.
+# Copyright (C) 2021
+# This file is distributed under the same license as the x2gobroker package.
+# Camaleón <noela...@gmail.com>, 2021.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: x2gobroker\n"
+"Report-Msgid-Bugs-To: x2gobro...@packages.debian.org\n"
+"POT-Creation-Date: 2019-02-03 11:44+0100\n"
+"PO-Revision-Date: 2021-04-14 15:32+0200\n"
+"Last-Translator: Camaleón <noela...@gmail.com>\n"
+"Language-Team: Debian Spanish <debian-l10n-span...@lists.debian.org>\n"
+"Language: es\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../x2gobroker-ssh.templates:2001
+msgid "Create group for X2Go Broker SSH access now?"
+msgstr "¿Desea crear un grupo para el acceso SSH al broker de X2Go?"
+
+#. Type: boolean
+#. Description
+#: ../x2gobroker-ssh.templates:2001
+msgid ""
+"In X2Go Session Broker, SSH-based broker access is controlled via the broker "
+"users' membership in a dedicated group (default: x2gobroker-users)."
+msgstr ""
+"En X2Go Session Broker, el acceso al broker basado en SSH se controla a 
través "
+"de la pertenencia de los usuarios del broker a un grupo dedicado 
(predeterminado: "
+"x2gobroker-users)."
+
+#. Type: boolean
+#. Description
+#: ../x2gobroker-ssh.templates:2001
+msgid ""
+"If this group is not created now, you will be asked to assign this privilege "
+"to an existing group instead."
+msgstr ""
+"Si no crea este grupo ahora, en su lugar se le pedirá que asigne este "
+"privilegio a un grupo existente."
+
+#. Type: boolean
+#. Description
+#: ../x2gobroker-ssh.templates:3001
+msgid "Use an already existing group for X2Go Session Broker SSH access?"
+msgstr "¿Desea utilizar un grupo existente para el acceso SSH de X2Go Session?"
+"Broker?"
+
+#. Type: boolean
+#. Description
+#: ../x2gobroker-ssh.templates:3001
+msgid ""
+"If there already exists a group (e.g. in an LDAP database) that you would "
+"like to use for controlling X2Go Session Broker SSH access with, then you "
+"can specify this group name with the next step."
+msgstr ""
+"Si ya existe un grupo que desea utilizar para controlar el acceso SSH a "
+"X2Go Session Broker (p. ej., en una base de datos LDAP), puede indicar "
+"el nombre de este grupo en el siguiente apartado."
+
+#. Type: boolean
+#. Description
+#: ../x2gobroker-ssh.templates:4001
+msgid "Set up X2Go Session Broker SSH access later?"
+msgstr "¿Desea configurar el acceso SSH a X2Go Session Broker en otro momento?"
+
+#. Type: boolean
+#. Description
+#: ../x2gobroker-ssh.templates:4001
+msgid ""
+"Without an existing group for X2Go Session Broker SSH access, the SSH broker "
+"will not be usable by users. You have to set up things later, either "
+"manually or via this configuration helper."
+msgstr ""
+"Si no existe un grupo para el acceso SSH a X2Go Session Broker, los usuarios "
+"no podrán usar el broker SSH. Tendrá que configurarlo más adelante, bien "
+"manualmente o a través de este asistente de configuración."
+""
+
+#. Type: boolean
+#. Description
+#: ../x2gobroker-ssh.templates:4001
+msgid ""
+"A manual setup is only recommended, if you really know what have to do for "
+"this."
+msgstr ""
+"Solo se recomienda realizar una configuración manual si realmente sabe lo "
+"que tiene que hacer."
+
+#. Type: boolean
+#. Description
+#: ../x2gobroker-ssh.templates:4001
+msgid "Alternatively, the setup questions can be asked once more..."
+msgstr "Alternativamente, se le pueden hacer las preguntas de configuración "
+"una vez más..."
+
+#. Type: string
+#. Description
+#: ../x2gobroker-ssh.templates:5001
+msgid "X2Go Session Broker SSH access group:"
+msgstr "Grupo para el acceso SSH de X2Go Session Broker:"
+
+#. Type: string
+#. Description
+#: ../x2gobroker-ssh.templates:5001
+msgid ""
+"Please specify the group name for users with full X2Go Session Broker access "
+"via SSH now."
+msgstr ""
+"Por favor, indique el nombre del grupo de los usuarios con derechos de acceso 
"
+"a X2Go Session Broker a través de SSH."
+
+#. Type: boolean
+#. Description
+#: ../x2gobroker-ssh.templates:6001
+msgid ""
+"Delete the group that was formerly used for X2Go Session Broker SSH access?"
+msgstr ""
+"¿Desea eliminar el grupo utilizado anteriormente para el acceso SSH a X2Go "
+"Session Broker?"
+
+#. Type: boolean
+#. Description
+#: ../x2gobroker-ssh.templates:6001
+msgid "The group for X2Go Session Broker SSH access has been modified."
+msgstr "Se ha modificado el grupo para el acceso SSH a X2Go Session Broker."
+
+#. Type: boolean
+#. Description
+#: ../x2gobroker-ssh.templates:6001
+msgid ""
+"Please specify whether the old group should be deleted from your system. If "
+"unsure, keep the formerly used group and manually investigate later."
+msgstr ""
+"Por favor, indique si debe eliminarse el grupo antiguo de su sistema. Si no "
+"está seguro, conserve el grupo anterior e investigue después."
+
+#. Type: note
+#. Description
+#: ../x2gobroker-ssh.templates:7001
+msgid "The specified group does not exist on the system"
+msgstr "El grupo indicado no existe en su sistema"
+
+#. Type: note
+#. Description
+#: ../x2gobroker-ssh.templates:7001
+msgid "Please enter a group name that is currently available on your system."
+msgstr "Por favor, introduzca el nombre de un grupo que se exista actualmente "
+"en su sistema."
+
+#. Type: note
+#. Description
+#: ../x2gobroker-ssh.templates:7001
+msgid "Please, try again!"
+msgstr "¡Por favor, inténtelo de nuevo!"
diff -Nru x2gobroker-0.0.4.3/debian/po/pt_BR.po 
x2gobroker-0.0.4.3/debian/po/pt_BR.po
--- x2gobroker-0.0.4.3/debian/po/pt_BR.po       1970-01-01 01:00:00.000000000 
+0100
+++ x2gobroker-0.0.4.3/debian/po/pt_BR.po       2023-05-16 21:25:10.000000000 
+0200
@@ -0,0 +1,163 @@
+# Debconf translations for x2gobroker.
+# Copyright (C) 2022 THE x2gobroker'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the x2gobroker package.
+# Paulo Henrique de Lima Santana (phls) <p...@debian.org>, 2022.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: x2gobroker_0.0.4.3-2.1\n"
+"Report-Msgid-Bugs-To: x2gobro...@packages.debian.org\n"
+"POT-Creation-Date: 2019-02-03 11:44+0100\n"
+"PO-Revision-Date: 2022-12-19 14:25-0300\n"
+"Last-Translator: Paulo Henrique de Lima Santana (phls) <p...@debian.org>\n"
+"Language-Team: Brazilian Portuguese <debian-l10n-portuguese@lists.debian."
+"org>\n"
+"Language: pt_BR\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n > 1)\n"
+"X-Generator: Gtranslator 42.0\n"
+
+#. Type: boolean
+#. Description
+#: ../x2gobroker-ssh.templates:2001
+msgid "Create group for X2Go Broker SSH access now?"
+msgstr "Criar o grupo para acesso SSH do agente X2Go agora?"
+
+#. Type: boolean
+#. Description
+#: ../x2gobroker-ssh.templates:2001
+msgid ""
+"In X2Go Session Broker, SSH-based broker access is controlled via the broker "
+"users' membership in a dedicated group (default: x2gobroker-users)."
+msgstr ""
+"No X2Go Session Broker, o acesso do agente baseado em SSH é controlado por "
+"meio da associação dos usuários do agente em um grupo dedicado (padrão: "
+"x2gobroker-users)."
+
+#. Type: boolean
+#. Description
+#: ../x2gobroker-ssh.templates:2001
+msgid ""
+"If this group is not created now, you will be asked to assign this privilege "
+"to an existing group instead."
+msgstr ""
+"Se este grupo não for criado agora, você será solicitado a atribuir este "
+"privilégio a um grupo existente."
+
+#. Type: boolean
+#. Description
+#: ../x2gobroker-ssh.templates:3001
+msgid "Use an already existing group for X2Go Session Broker SSH access?"
+msgstr "Usar um grupo já existente para acesso SSH do X2Go Session Broker?"
+
+#. Type: boolean
+#. Description
+#: ../x2gobroker-ssh.templates:3001
+msgid ""
+"If there already exists a group (e.g. in an LDAP database) that you would "
+"like to use for controlling X2Go Session Broker SSH access with, then you "
+"can specify this group name with the next step."
+msgstr ""
+"Se já existe um grupo (por exemplo, em um banco de dados LDAP) que você "
+"gostaria de usar para controlar o acesso SSH do X2Go Session Broker, você "
+"pode especificar o nome desse grupo na próxima etapa."
+
+#. Type: boolean
+#. Description
+#: ../x2gobroker-ssh.templates:4001
+msgid "Set up X2Go Session Broker SSH access later?"
+msgstr "Configurar o acesso SSH do X2Go Session Broker mais tarde?"
+
+#. Type: boolean
+#. Description
+#: ../x2gobroker-ssh.templates:4001
+msgid ""
+"Without an existing group for X2Go Session Broker SSH access, the SSH broker "
+"will not be usable by users. You have to set up things later, either "
+"manually or via this configuration helper."
+msgstr ""
+"Sem um grupo existente para acesso SSH do X2Go Session Broker, o agente SSH "
+"não poderá ser usado pelos usuários. Você precisará configurar mais tarde, "
+"manualmente ou por meio deste auxiliar de configuração."
+
+#. Type: boolean
+#. Description
+#: ../x2gobroker-ssh.templates:4001
+msgid ""
+"A manual setup is only recommended, if you really know what have to do for "
+"this."
+msgstr ""
+"Uma configuração manual só é recomendada se você realmente souber o que é "
+"necessário fazer."
+
+#. Type: boolean
+#. Description
+#: ../x2gobroker-ssh.templates:4001
+msgid "Alternatively, the setup questions can be asked once more..."
+msgstr ""
+"Como alternativa, as perguntas de configuração podem ser feitas mais uma "
+"vez..."
+
+#. Type: string
+#. Description
+#: ../x2gobroker-ssh.templates:5001
+msgid "X2Go Session Broker SSH access group:"
+msgstr "Grupo de acesso SSH do X2Go Session Broker:"
+
+#. Type: string
+#. Description
+#: ../x2gobroker-ssh.templates:5001
+msgid ""
+"Please specify the group name for users with full X2Go Session Broker access "
+"via SSH now."
+msgstr ""
+"Por favor, especifique o nome do grupo para usuários com acesso completo do "
+"X2Go Session Broker via SSH agora."
+
+#. Type: boolean
+#. Description
+#: ../x2gobroker-ssh.templates:6001
+msgid ""
+"Delete the group that was formerly used for X2Go Session Broker SSH access?"
+msgstr ""
+"Excluir o grupo que foi usado anteriormente para acesso SSH do X2Go Session "
+"Broker?"
+
+#. Type: boolean
+#. Description
+#: ../x2gobroker-ssh.templates:6001
+msgid "The group for X2Go Session Broker SSH access has been modified."
+msgstr "O grupo para acesso SSH do X2Go Session Broker foi modificado."
+
+#. Type: boolean
+#. Description
+#: ../x2gobroker-ssh.templates:6001
+msgid ""
+"Please specify whether the old group should be deleted from your system. If "
+"unsure, keep the formerly used group and manually investigate later."
+msgstr ""
+"Por favor, especifique se o grupo antigo deve ser excluído do seu sistema. "
+"Se não tiver certeza, mantenha o grupo usado anteriormente e investigue "
+"manualmente mais tarde."
+
+#. Type: note
+#. Description
+#: ../x2gobroker-ssh.templates:7001
+msgid "The specified group does not exist on the system"
+msgstr "O grupo especificado não existe no sistema"
+
+#. Type: note
+#. Description
+#: ../x2gobroker-ssh.templates:7001
+msgid "Please enter a group name that is currently available on your system."
+msgstr ""
+"Por favor, insira um nome de grupo que esteja atualmente disponível em seu "
+"sistema."
+
+#. Type: note
+#. Description
+#: ../x2gobroker-ssh.templates:7001
+msgid "Please, try again!"
+msgstr "Por favor, tente novamente!"
diff -Nru x2gobroker-0.0.4.3/debian/x2gobroker-agent.postrm 
x2gobroker-0.0.4.3/debian/x2gobroker-agent.postrm
--- x2gobroker-0.0.4.3/debian/x2gobroker-agent.postrm   2019-03-31 
16:49:49.000000000 +0200
+++ x2gobroker-0.0.4.3/debian/x2gobroker-agent.postrm   2023-05-19 
10:52:35.000000000 +0200
@@ -32,9 +32,8 @@
 
                if [ ! -d /usr/share/doc/x2gobroker-daemon ] && [ ! -d 
/usr/share/doc/x2gobroker-authservice ] && [ ! -d 
/usr/share/doc/x2gobroker-wsgi ] && [ ! -d 
/usr/share/doc/x2gobroker-loadchecker ]; then
                        # remove user/group x2gobroker from system (if not in 
use by x2gobroker-daemon, x2gobroker-authservice, x2gobroker-wsgi, 
x2gobroker-loadchecker)
-                       getent passwd x2gobroker 1>/dev/null && deluser 
x2gobroker
-                       getent group x2gobroker 1>/dev/null && delgroup 
x2gobroker
-                       getent group x2gobroker 1>/dev/null && delgroup 
x2gobroker
+                       getent passwd x2gobroker 1>/dev/null && deluser 
x2gobroker || true
+                       getent group x2gobroker 1>/dev/null && delgroup 
x2gobroker || true
                        rm -Rf /var/lib/x2gobroker
                fi
 
@@ -52,4 +51,4 @@
 
 #DEBHELPER#
 
-exit 0
\ Kein Zeilenumbruch am Dateiende.
+exit 0
diff -Nru x2gobroker-0.0.4.3/debian/x2gobroker-authservice.postrm 
x2gobroker-0.0.4.3/debian/x2gobroker-authservice.postrm
--- x2gobroker-0.0.4.3/debian/x2gobroker-authservice.postrm     2019-03-31 
16:49:49.000000000 +0200
+++ x2gobroker-0.0.4.3/debian/x2gobroker-authservice.postrm     2023-05-19 
10:51:35.000000000 +0200
@@ -28,9 +28,8 @@
 
                if [ ! -d /usr/share/doc/x2gobroker-daemon ] && [ ! -d 
/usr/share/doc/x2gobroker-agent ] && [ ! -d /usr/share/doc/x2gobroker-wsgi ] && 
[ ! -d /usr/share/doc/x2gobroker-loadchecker ]; then
                        # remove user/group x2gobroker from system (only if not 
in use by x2gobroker-daemon, x2gobroker-agent, x2gobroker-wsgi, 
x2gobroker-loadchecker)
-                       getent passwd x2gobroker 1>/dev/null && deluser 
x2gobroker
-                       getent group x2gobroker 1>/dev/null && delgroup 
x2gobroker
-                       getent group x2gobroker 1>/dev/null && delgroup 
x2gobroker
+                       getent passwd x2gobroker 1>/dev/null && deluser 
x2gobroker || true
+                       getent group x2gobroker 1>/dev/null && delgroup 
x2gobroker || true
                        rm -Rf /var/lib/x2gobroker
                fi
 
diff -Nru x2gobroker-0.0.4.3/debian/x2gobroker-daemon.postrm 
x2gobroker-0.0.4.3/debian/x2gobroker-daemon.postrm
--- x2gobroker-0.0.4.3/debian/x2gobroker-daemon.postrm  2019-03-31 
16:49:49.000000000 +0200
+++ x2gobroker-0.0.4.3/debian/x2gobroker-daemon.postrm  2023-05-19 
10:51:46.000000000 +0200
@@ -28,9 +28,8 @@
 
                if [ ! -d /usr/share/doc/x2gobroker-agent ] && [ ! -d 
/usr/share/doc/x2gobroker-authservice ] && [ ! -d 
/usr/share/doc/x2gobroker-wsgi ] && [ ! -d 
/usr/share/doc/x2gobroker-loadchecker ]; then
                        # remove user/group x2gobroker from system (only if not 
in use by x2gobroker-agent, x2gobroker-authservice, x2gobroker-wsgi, 
x2gobroker-loadchecker)
-                       getent passwd x2gobroker 1>/dev/null && deluser 
x2gobroker
-                       getent group x2gobroker 1>/dev/null && delgroup 
x2gobroker
-                       getent group x2gobroker 1>/dev/null && delgroup 
x2gobroker
+                       getent passwd x2gobroker 1>/dev/null && deluser 
x2gobroker || true
+                       getent group x2gobroker 1>/dev/null && delgroup 
x2gobroker || true
                        rm -Rf /var/lib/x2gobroker
                fi
 
diff -Nru x2gobroker-0.0.4.3/debian/x2gobroker-loadchecker.postrm 
x2gobroker-0.0.4.3/debian/x2gobroker-loadchecker.postrm
--- x2gobroker-0.0.4.3/debian/x2gobroker-loadchecker.postrm     2019-03-31 
16:49:49.000000000 +0200
+++ x2gobroker-0.0.4.3/debian/x2gobroker-loadchecker.postrm     2023-05-19 
10:51:53.000000000 +0200
@@ -28,9 +28,8 @@
 
                if [ ! -d /usr/share/doc/x2gobroker-daemon ] && [ ! -d 
/usr/share/doc/x2gobroker-agent ] && [ ! -d /usr/share/doc/x2gobroker-wsgi ] && 
[ ! -d /usr/share/doc/x2gobroker-authservice ]; then
                        # remove user/group x2gobroker from system (only if not 
in use by x2gobroker-daemon, x2gobroker-agent, x2gobroker-wsgi, 
x2gobroker-authservice)
-                       getent passwd x2gobroker 1>/dev/null && deluser 
x2gobroker
-                       getent group x2gobroker 1>/dev/null && delgroup 
x2gobroker
-                       getent group x2gobroker 1>/dev/null && delgroup 
x2gobroker
+                       getent passwd x2gobroker 1>/dev/null && deluser 
x2gobroker || true
+                       getent group x2gobroker 1>/dev/null && delgroup 
x2gobroker || true
                        rm -Rf /var/lib/x2gobroker
                fi
 
diff -Nru x2gobroker-0.0.4.3/debian/x2gobroker-ssh.postrm 
x2gobroker-0.0.4.3/debian/x2gobroker-ssh.postrm
--- x2gobroker-0.0.4.3/debian/x2gobroker-ssh.postrm     2019-03-31 
16:49:49.000000000 +0200
+++ x2gobroker-0.0.4.3/debian/x2gobroker-ssh.postrm     2023-05-19 
10:52:02.000000000 +0200
@@ -27,9 +27,8 @@
 
                if [ ! -d /usr/share/doc/x2gobroker-agent ] && [ ! -d 
/usr/share/doc/x2gobroker-authservice ] && [ ! -d 
/usr/share/doc/x2gobroker-wsgi ] && [ ! -d /usr/share/doc/x2gobroker-daemon ]; 
then
                        # remove user/group x2gobroker from system (only if not 
in use by x2gobroker-agent, x2gobroker-authservice, x2gobroker-wsgi)
-                       getent passwd x2gobroker 1>/dev/null && deluser 
x2gobroker
-                       getent group x2gobroker 1>/dev/null && delgroup 
x2gobroker
-                       getent group x2gobroker 1>/dev/null && delgroup 
x2gobroker
+                       getent passwd x2gobroker 1>/dev/null && deluser 
x2gobroker || true
+                       getent group x2gobroker 1>/dev/null && delgroup 
x2gobroker || true
                        rm -Rf /var/lib/x2gobroker
                fi
 
diff -Nru x2gobroker-0.0.4.3/debian/x2gobroker-wsgi.postrm 
x2gobroker-0.0.4.3/debian/x2gobroker-wsgi.postrm
--- x2gobroker-0.0.4.3/debian/x2gobroker-wsgi.postrm    2019-03-31 
16:49:49.000000000 +0200
+++ x2gobroker-0.0.4.3/debian/x2gobroker-wsgi.postrm    2023-05-19 
10:52:09.000000000 +0200
@@ -44,9 +44,8 @@
 
                if [ ! -d /usr/share/doc/x2gobroker-agent ] && [ ! -d 
/usr/share/doc/x2gobroker-authservice ] && [ ! -d 
/usr/share/doc/x2gobroker-daemon ] && [ ! -d 
/usr/share/doc/x2gobroker-loadchecker ]; then
                        # remove user/group x2gobroker from system (only if not 
in use by x2gobroker-agent, x2gobroker-authservice, x2gobroker-daemon, 
x2gobroker-loadchecker)
-                       getent passwd x2gobroker 1>/dev/null && deluser 
x2gobroker
-                       getent group x2gobroker 1>/dev/null && delgroup 
x2gobroker
-                       getent group x2gobroker 1>/dev/null && delgroup 
x2gobroker
+                       getent passwd x2gobroker 1>/dev/null && deluser 
x2gobroker || true
+                       getent group x2gobroker 1>/dev/null && delgroup 
x2gobroker || true
                        rm -Rf /var/lib/x2gobroker
                fi
 

Reply via email to