#!/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