1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00
freebsd-ports/mail/openwebmail/pkg-install

20 lines
680 B
Bash

#!/bin/sh
if [ "$2" != "POST-INSTALL" ]; then
exit 0
fi
mkdir -p ${PKG_PREFIX}/www/cgi-bin/openwebmail/etc/sessions
chmod 0770 ${PKG_PREFIX}/www/cgi-bin/openwebmail/etc/sessions
mkdir -p ${PKG_PREFIX}/www/cgi-bin/openwebmail/etc/users
chmod 0700 ${PKG_PREFIX}/www/cgi-bin/openwebmail/etc/users
chmod 4755 ${PKG_PREFIX}/www/cgi-bin/openwebmail/openwebmail*pl
for x in addressbooks/global calendar.book; do
if [ ! -s "${PKG_PREFIX}/www/cgi-bin/openwebmail/etc/${x}" ]; then
touch ${PKG_PREFIX}/www/cgi-bin/openwebmail/etc/${x}
chmod 0666 ${PKG_PREFIX}/www/cgi-bin/openwebmail/etc/${x}
fi
done
${PKG_PREFIX}/www/cgi-bin/openwebmail/openwebmail-tool.pl --init --no