Code

Updated faiSummary to be w3c conform
[gosa.git] / gosa-core / debian / gosa.postinst
index c35f0958fc487ce5e429326c0ffdf10434cb0002..ae1081d9382b71442a7c5841902027606b9ef640 100644 (file)
@@ -31,11 +31,19 @@ if [ ! -f /etc/gosa/gosa.secrets ]; then
 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
+
+  # Remove old instances of this file
+  if [ -f /etc/apache2/conf.d/gosa.conf ]; then
+    echo "Found old gosa apache configuration in /etc/apache2/conf.d - moving it to gosa.conf.orig..."
+    echo "Please check for changes in /etc/gosa/gosa-apache.conf if you modified this file!"
+    mv /etc/apache2/conf.d/gosa.conf /etc/apache2/conf.d/gosa.conf.orig
+  fi
+
   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
@@ -56,8 +64,7 @@ chmod 770 -R /var/cache/gosa
 # Add support for RequestHeader
 a2enmod headers
 
-# Update gosa
-/usr/sbin/update-gosa
+update-gosa
 
 # Finally restart servers
 if [ -x /usr/sbin/invoke-rc.d ]; then