The debian maintainer scripts remove and create group during upgrades
and downgrades, causing the group ids to change, locking users out of
/var/lib/toolbox.
This commit modifies the debian maintainer scripts so that they only
remove groups during package removals.
#!/bin/sh
main() {
+ action="$1"
+
+ # only add groups and stat overrides when installing
+ if [ "$action" != "configure" ]; then
+ return 0
+ fi
+
# If a group exists, there is a chance that the user
# has customized directory ownership and permissions,
# so we don't change it.
#!/bin/sh
main() {
+ action="$1"
+
+ # don't remove stat overrides if not uninstalling
+ if [ "$action" != "remove" ]; then
+ return 0
+ fi
+
if dpkg-statoverride --list /var/lib/toolbox/ipc >/dev/null 2>&1; then
dpkg-statoverride --remove /var/lib/toolbox/ipc
fi