freebsd-ports/sysutils/puppet/files/pkg-deinstall.in
Wesley Shields c2042e5321 - Update to 0.24.8
- Cleanup Makefile to use modern constructs (COPYTREE_SHARE, PORTDOCS, etc)
- Fix typos in pkg-message
- Cleanup properly in pkg-deinstall

PR:		ports/129185 (based upon)
Submitted by:	l.messner@physik.tu-berlin.de
Approved by:	maintainer timeout (3+ months)
2009-03-31 14:00:15 +00:00

14 lines
315 B
Bash

#!/bin/sh
# $FreeBSD:
PATH="/bin:/sbin:/usr/bin:/usr/sbin"
RUNDIR=%%PUPPET_RUNDIR%%
WORKDIR=%%PUPPET_WORKDIR%%
if [ "$2" = "POST-DEINSTALL" ]; then
echo "=> Deleting ${RUNDIR} if empty..."
rm -d ${RUNDIR} 2>/dev/null || true
echo "=> Deleting ${WORKDIR} if empty..."
rm -d ${WORKDIR} 2>/dev/null || true
fi