mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-29 10:18:30 +00:00
dd1a6fcb2b
backend storage WWW: http://code.google.com/p/twms/
18 lines
316 B
Bash
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
|