#!/bin/sh

status=$(/sbin/e-smith/config getprop horde cache)
if [ "$status" = "enabled" ]
then
    chown -R root.www /home/httpd/html/horde/static
    chmod -R 770 /home/httpd/html/horde/static

else
   chown -R root.root /home/httpd/html/horde/static
   chmod -R 700 /home/httpd/html/horde/static
   echo "Caching of static horde pages is disabled" >&2
#    exit 0
fi
