~ubuntu-branches/ubuntu/lucid/landscape-client/lucid-updates

« back to all changes in this revision

Viewing changes to debian/landscape-client.postrm

  • Committer: Package Import Robot
  • Author(s): Andreas Hasenack
  • Date: 2012-04-10 14:28:48 UTC
  • mfrom: (1.1.27)
  • mto: This revision was merged to the branch mainline in revision 35.
  • Revision ID: package-import@ubuntu.com-20120410142848-7xsy4g2xii7y7ntc
ImportĀ upstreamĀ versionĀ 12.04.3

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
    DATA_DIR=/var/lib/landscape
 
21
 
 
22
    rm -f "/etc/default/landscape-client"
 
23
 
 
24
    rm -f "${LOG_DIR}/manager.log"*
 
25
    rm -f "${LOG_DIR}/monitor.log"*
 
26
    rm -f "${LOG_DIR}/broker.log"*
 
27
    rm -f "${LOG_DIR}/watchdog.log"*
 
28
    rm -f "${LOG_DIR}/package-reporter.log"*
 
29
    rm -f "${LOG_DIR}/package-changer.log"*
 
30
 
 
31
    rm -rf "${DATA_DIR}/client"
 
32
    rm -rf "${DATA_DIR}/.gnupg"
 
33
 
 
34
    ;;
 
35
 
 
36
    remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
 
37
    ;;
 
38
 
 
39
    *)
 
40
        echo "postrm called with unknown argument \`$1'" >&2
 
41
        exit 1
 
42
    ;;
 
43
esac
 
44
 
 
45
# dh_installdeb will replace this with shell code automatically
 
46
# generated by other debhelper scripts.
 
47
 
 
48
#DEBHELPER#
 
49
 
 
50
exit 0