~simpoir/landscape-client/py3fix-network-usage

« back to all changes in this revision

Viewing changes to debian/landscape-common3.postrm

  • Committer: Steffen Allner
  • Date: 2017-03-31 12:05:57 UTC
  • mto: This revision was merged to the branch mainline in revision 999.
  • Revision ID: sa@gocept.com-20170331120557-lh9qefbx9lnif43w
Change configuration to build python 3 packages.

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
        LOG_DIR=/var/log/landscape
 
20
        CONFIG_FILE=/etc/landscape/client.conf
 
21
        deluser --quiet --system landscape >/dev/null || true
 
22
        rm -f "${LOG_DIR}/sysinfo.log"*
 
23
        rm -f "${CONFIG_FILE}"
 
24
    ;;
 
25
 
 
26
    remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
 
27
    ;;
 
28
 
 
29
    *)
 
30
        echo "postrm called with unknown argument \`$1'" >&2
 
31
        exit 1
 
32
    ;;
 
33
esac
 
34
 
 
35
# dh_installdeb will replace this with shell code automatically
 
36
# generated by other debhelper scripts.
 
37
 
 
38
#DEBHELPER#
 
39
 
 
40
exit 0