Bug#1034530: mtrg: mrtg.postinst uses useradd/groupadd (passwd) while mrtg.postrm uses deluser/delgroup (adduser)

2023-04-18 Thread Eriberto
Hi Patrice,

Thanks for your bug report. I will an optional sequence, like
apt-cacher-ng, to solve this issue. I tested it using the piuparts
command.

  deluser --system mrtg 2>/dev/null || userdel -fr mrtg 2>/dev/null
  delgroup --system mrtg 2>/dev/null || groupdel -f mrtg 2>/dev/null

Regards,

Eriberto



Bug#1034530: mtrg: mrtg.postinst uses useradd/groupadd (passwd) while mrtg.postrm uses deluser/delgroup (adduser)

2023-04-17 Thread Patrice Duroux
Package: mtrg
Version: 2.17.10-4
Severity: normal

Dear Maintainer,

Just by looking at this piuparts issue:
https://piuparts.debian.org/sid/source/m/mrtg.html,
I think that this is due to the use of userdel/groupdel instead of
deluser/delgroup
or add depends on adduser in the debian/control file.

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.1.0-7-amd64 (SMP w/12 CPU threads; PREEMPT)
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