initial commit of file from CVS for smeserver-horde on Sat Mar 23 16:05:15 AEDT 2024
This commit is contained in:
13
root/etc/e-smith/events/actions/conf-horde-cache
Normal file
13
root/etc/e-smith/events/actions/conf-horde-cache
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/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
|
Reference in New Issue
Block a user