File: chef.postrm

package info (click to toggle)
chef 10.12.0-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 3,464 kB
  • sloc: ruby: 31,229; sh: 1,413; python: 189; makefile: 9
file content (34 lines) | stat: -rw-r--r-- 700 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/sh
# postrm script for chef
#
# see: dh_installdeb(1)

set -e

TEMPLATE=/usr/share/chef/client.rb
CONFIGFILE=/etc/chef/client.rb

case "$1" in
    remove)
      rm -rf /var/cache/chef
    ;;
    purge)
      rm -rf /var/log/chef/client*
      test -x /usr/bin/ucf && ucf --purge $TEMPLATEFILE $CONFIGFILE
      rm -rf $CONFIGFILE $CONFIGFILE.ucf-old $CONFIGFILE.ucf-new $CONFIGFILE.ucf-dist
    ;;
    upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
    ;;

    *)
        echo "postrm called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0