File: opensysusers.postinst

package info (click to toggle)
opensysusers 0.7.3-5.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 476 kB
  • sloc: xml: 578; sh: 239; makefile: 194
file content (16 lines) | stat: -rw-r--r-- 555 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

set -e

if [ configure = "$1" ] && [ -n "$2" ] && dpkg --compare-versions "$2" lt 0.7.3-4.1~; then
    # We are upgrading from an earlier version that used to divert
    # systemd-sysusers. Since this version Conflicts: systemd-sysusers, there
    # should not be any divertees left during postinst and we may safely remove
    # all remaining diversions. If anything is left behind, --rename will fail.
    dpkg-divert --remove --rename /usr/bin/systemd-sysusers
    dpkg-divert --remove --rename /bin/systemd-sysusers
fi

#DEBHELPER#

exit 0