summaryrefslogtreecommitdiffstats
path: root/encap/src/bcfg2-site/bcfg2-site-RENAME/preremove
blob: 26e1b05aba323ac41f6c463c141e06b20158ead7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh -e

umask 002
BASEDIR="${ENCAP_TARGET}" # Usually /usr/local
PKGDIR="${ENCAP_SOURCE}/${ENCAP_PKGNAME}" # Ususally /usr/local/encap/<pkgname>

printf "Running ${ENCAP_PKGNAME} preremove script...\n"
date

# ostiary (daemontools)
if [ -h /service/ostiary ]; then
    printf "INFO: Removing /service/ostiary...\n"
    /command/svrm /service/ostiary
fi

# bcfg2-client (daemontools)
if [ -h /service/bcfg2-client ]; then
    printf "INFO: Removing /service/bcfg2-client...\n"
    /command/svrm /service/bcfg2-client
fi

printf "Finished ${ENCAP_PKGNAME} preremove script.\n"

exit 0