smeserver-horde/root/etc/e-smith/events/actions/conf-horde-cache

14 lines
338 B
Bash

#!/bin/sh
status=$(/sbin/e-smith/config getprop horde cache)
if [ "$status" = "enabled" ]
then
chown -R root.www /usr/share/horde/static
chmod -R 770 /usr/share/horde/static
else
chown -R root.root /usr/share/horde/static
chmod -R 700 /usr/share/horde/static
echo "Caching of static horde pages is disabled" >&2
fi