1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-29 10:18:30 +00:00
freebsd-ports/www/twms/files/pkg-deinstall.in
2010-09-08 15:27:32 +00:00

18 lines
316 B
Bash

#!/bin/sh
USER=%%USER%%
GROUP=%%GROUP%%
CACHEDIR=%%CACHEDIR%%
if [ "$2" = "POST-DEINSTALL" ]; then
echo "===> Removing tWMS cache directory"
rm -rf "%%CACHEDIR%%" || exit 1
echo "===> Removing tWMS user and group"
if pw usershow "${USER}" >/dev/null 2>&1; then
pw userdel "${USER}" || exit 1
fi
fi
exit 0