freebsd-ports/irc/bitlbee-otr/files/pkg-deinstall.in
Henrik Brix Andersen c2e4cfd348 Run the bitlbee daemon as user 'bitlbee' instead of 'nobody' by
default to honor the fact that 'nobody' is not intended to own any
files.

Requested by:	simon
Approved by:	erwin (mentor)
2008-05-19 16:10:14 +00:00

17 lines
411 B
Bash

#!/bin/sh -
#
# $FreeBSD$
#
BITLBEEUSER=%%BITLBEEUSER%%
BITLBEEGROUP=%%BITLBEEGROUP%%
if [ "$2" = "POST-DEINSTALL" ]; then
if /usr/sbin/pw group show "${BITLBEEGROUP}" 2>&1 >/dev/null; then
echo "You should manually remove the \"${BITLBEEGROUP}\" group."
fi
if /usr/sbin/pw user show "${BITLBEEUSER}" 2>&1 >/dev/null; then
echo "You should manually remove the \"${BITLBEEUSER}\" user."
fi
fi