diff options
Diffstat (limited to 'mail/openwebmail/pkg-deinstall')
-rw-r--r-- | mail/openwebmail/pkg-deinstall | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mail/openwebmail/pkg-deinstall b/mail/openwebmail/pkg-deinstall new file mode 100644 index 000000000000..a63d9953a511 --- /dev/null +++ b/mail/openwebmail/pkg-deinstall @@ -0,0 +1,12 @@ +#!/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/* |