1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/mail/openwebmail/pkg-deinstall

13 lines
299 B
Bash

#!/bin/sh
if [ "$2" != "DEINSTALL" ]; then
exit 0
fi
for x in addressbooks/global calendar.book; do
if [ ! -s "${PKG_PREFIX}/www/cgi-bin/openwebmail/etc/${x}" ]; then
rm ${PKG_PREFIX}/www/cgi-bin/openwebmail/etc/${x}
fi
done
rm -fr ${PKG_PREFIX}/www/cgi-bin/openwebmail/etc/sessions/*