2004-01-03 12:26:54 +01:00
|
|
|
#!/bin/sh
|
|
|
|
if [ "$2" != "POST-INSTALL" ]; then
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2007-02-02 06:02:26 +01:00
|
|
|
mkdir -p ${PKG_PREFIX}/www/cgi-bin/openwebmail/etc/addressbooks
|
2005-05-12 10:47:44 +02:00
|
|
|
mkdir -p ${PKG_PREFIX}/www/cgi-bin/openwebmail/etc/sessions
|
2004-01-03 12:26:54 +01:00
|
|
|
chmod 0770 ${PKG_PREFIX}/www/cgi-bin/openwebmail/etc/sessions
|
2005-05-12 10:47:44 +02:00
|
|
|
mkdir -p ${PKG_PREFIX}/www/cgi-bin/openwebmail/etc/users
|
2004-01-03 12:26:54 +01:00
|
|
|
chmod 0700 ${PKG_PREFIX}/www/cgi-bin/openwebmail/etc/users
|
|
|
|
chmod 4755 ${PKG_PREFIX}/www/cgi-bin/openwebmail/openwebmail*pl
|
2005-05-13 17:15:31 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2005-05-12 10:47:44 +02:00
|
|
|
${PKG_PREFIX}/www/cgi-bin/openwebmail/openwebmail-tool.pl --init --no
|