+dcmtk (3.6.6-6) UNRELEASED; urgency=medium
+
+ * d/dcmtk.postrm: Added check to remove dcmtk user (Closes: #987972)
+ * d/dcmtk.postinst: Change dcmtk user shell to nologin
+
+ -- Lance Lin <LQi254@protonmail.com> Wed, 13 Apr 2022 19:36:57 +0700
+
dcmtk (3.6.6-5) unstable; urgency=medium
* d/rules: Re-exposed --interleave-none option. Closes: #1001703
fi
echo "Adding \`dcmtk' user to system ..."
adduser --quiet --system --ingroup dcmtk --home /var/lib/dcmtk/db \
- --shell /bin/sh --disabled-password dcmtk || true
+ --shell /usr/sbin/nologin dcmtk || true
fi
# work around possible adduser bug, see #119366
fi
fi
+# Remove dcmtk user/group if they exist on cleanup
+if -u "dcmtk" > /dev/null 2>&1; then
+ echo "Removing 'dcmtk' user and group from the system...\n"
+ userdel dcmtk
+fi
+
#DEBHELPER#