aboutsummaryrefslogblamecommitdiff
path: root/mail/openwebmail/pkg-deinstall
blob: a63d9953a511e87e28644195a5f5443b44901073 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
         



                                





                                                                    
                                                           
#!/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/*