~ericsnowcurrently/landscape-client/fix-1681947-script-shbang

« back to all changes in this revision

Viewing changes to debian/landscape-common3.postrm

Merge fix-1680875-fix-packaging-conflicts [f=1680875] [r=free.ekanayaka,chad.smith,landscape-builder] [a=Eric Snow]
Factor out a common setup package for landscape-client and landscape-sysinfo.

This removes possible conflicts between the Python 2 and Python 3 lib packages.

Note that, as part of this change, the landscape-common packages have been
renamed to pythonX-landscape-lib.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
set -e
3
 
 
4
 
# summary of how this script can be called:
5
 
#        * <postrm> `remove'
6
 
#        * <postrm> `purge'
7
 
#        * <old-postrm> `upgrade' <new-version>
8
 
#        * <new-postrm> `failed-upgrade' <old-version>
9
 
#        * <new-postrm> `abort-install'
10
 
#        * <new-postrm> `abort-install' <old-version>
11
 
#        * <new-postrm> `abort-upgrade' <old-version>
12
 
#        * <disappearer's-postrm> `disappear' <overwriter>
13
 
#          <overwriter-version>
14
 
# for details, see http://www.debian.org/doc/debian-policy/ or
15
 
# the debian-policy package
16
 
 
17
 
case "$1" in
18
 
    purge)
19
 
        CONFIG_FILE=/etc/landscape/client.conf
20
 
        deluser --quiet --system landscape >/dev/null || true
21
 
        rm -f "${CONFIG_FILE}"
22
 
    ;;
23
 
 
24
 
    remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
25
 
    ;;
26
 
 
27
 
    *)
28
 
        echo "postrm called with unknown argument \`$1'" >&2
29
 
        exit 1
30
 
    ;;
31
 
esac
32
 
 
33
 
# dh_installdeb will replace this with shell code automatically
34
 
# generated by other debhelper scripts.
35
 
 
36
 
#DEBHELPER#
37
 
 
38
 
exit 0