index 622d1c2203251b428633aaeba257047766169210..e68ba154e075b24b07a10506e0c81af0c4e1e7ad 100644 (file)
# Create empty inclusion file for apache
if [ ! -f /etc/gosa/gosa.secrets ]; then
touch /etc/gosa/gosa.secrets
# Create empty inclusion file for apache
if [ ! -f /etc/gosa/gosa.secrets ]; then
touch /etc/gosa/gosa.secrets
- chown root.root /etc/gosa/gosa.secrets
chmod 600 /etc/gosa/gosa.secrets
fi
# Copy GOsa configuration to conf.d directories
chmod 600 /etc/gosa/gosa.secrets
fi
# Copy GOsa configuration to conf.d directories
-if [ ! -f /etc/apache2/conf.d/gosa.conf ]; then
+if [ ! -L /etc/apache2/conf.d/gosa.conf ]; then
echo "Making /gosa available in /etc/apache2/conf.d"
# Add GOsa include file
echo "Making /gosa available in /etc/apache2/conf.d"
# Add GOsa include file
- ln -s /etc/gosa/apache-gosa.conf /etc/apache2/conf.d/gosa.conf
+ ln -s /etc/gosa/gosa-apache.conf /etc/apache2/conf.d/gosa.conf
fi
# Add links for safe mode
fi
# Add links for safe mode
fi
done
fi
done
-# Fix permission in /var/spool/gosa
+# Fix permission in /var/(spool|cache)/gosa
chown root.$WEBGROUP -R /var/spool/gosa
chmod 770 -R /var/spool/gosa
chown root.$WEBGROUP -R /var/spool/gosa
chmod 770 -R /var/spool/gosa
+chown root.$WEBGROUP -R /var/cache/gosa
+chmod 770 -R /var/cache/gosa
# Add support for RequestHeader
a2enmod headers
# Add support for RequestHeader
a2enmod headers