File: prerm

package info (click to toggle)
slack 0.15.2-4
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 396 kB
  • ctags: 53
  • sloc: perl: 2,510; makefile: 130; sh: 23
file content (21 lines) | stat: -rw-r--r-- 307 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

set -e

if [ "$1" = "purge" -o "$1" = "remove" ]; then
	unset CACHE
	unset STAGE
        . /etc/slack.conf
        # purge the cache
	if [ -n "$CACHE" ]; then
        	rm -rf "$CACHE"/*
	fi
        # remove the stage
	if [ -n "$STAGE" ]; then
        	rm -rf "$STAGE"
	fi
fi

#DEBHELPER#

exit 0