PREIN
/bin/sh
if [ -d "/usr/share/kolab-syncroton/lib/ext/Roundcube" -a ! -L "/usr/share/kolab-syncroton/lib/ext/Roundcube" ]; then
rm -rf "/usr/share/kolab-syncroton/lib/ext/Roundcube"
fi
if [ -d "/usr/share/kolab-syncroton/lib/plugins/" ]; then
find /usr/share/kolab-syncroton/lib/plugins/ -mindepth 2 -maxdepth 2 | while read file; do
if [ ! -L "${file}" ]; then
rm -rf "${file}"
fi
done
fi
POSTIN
/bin/sh
if [ -f "/etc/php.d/99_apcu.ini" ]; then
if [ ! -z "`grep ^apcu.enabled=1 /etc/php.d/99_apcu.ini`" ]; then
/sbin/systemctl condrestart httpd.service
fi
fi
/usr/share/roundcubemail/bin/updatedb.sh \
--dir /usr/share/doc/kolab-syncroton-2.3.13/SQL/ \
--package syncroton \
>/dev/null 2>&1 || :
exit 0