Code

Added check for plain file. Closes #541
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 1 Sep 2008 06:37:25 +0000 (06:37 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 1 Sep 2008 06:37:25 +0000 (06:37 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12313 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/debian/gosa.postinst

index e68ba154e075b24b07a10506e0c81af0c4e1e7ad..edc68e81889d800ac4dbde2409af5f3f21e7dded 100644 (file)
@@ -32,6 +32,14 @@ fi
 
 # Copy GOsa configuration to conf.d directories
 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