Code

Updated setup.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 26 Jun 2009 06:22:24 +0000 (06:22 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 26 Jun 2009 06:22:24 +0000 (06:22 +0000)
-If php was compiles without posix functions, then the setup wasn't working.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13796 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/setup/class_setupStep_Finish.inc
gosa-core/setup/setup_finish.tpl

index 5fe91f8cee2418c980e7772fc9ed76189991bf80..a64fbcd05923e6b33d260f267773b05c56558737 100644 (file)
@@ -53,8 +53,12 @@ class Step_Finish extends setup_step
   function execute()
   {
 
-    $info= posix_getgrgid(posix_getgid());
-    $webgroup = $info['name'];
+    if(!function_exists("posix_getgrgid")){
+      $webgroup = "";
+    }else{
+      $info= posix_getgrgid(posix_getgid());
+      $webgroup = $info['name'];
+    }
 
     /* Check if there is currently an active gosa.conf 
      */
index 5b4c80ecd649a2004f8859c1ae586b856f2f0876..4f29b9cd64fe0d92cdf0f6e268346f37d8e66265 100644 (file)
@@ -5,9 +5,24 @@
        <p>     
                {$msg2}
        </p>
-       <tt>
-       chown root:{$webgroup} {$CONFIG_DIR}/{$CONFIG_FILE}<br>
-       chmod 640 {$CONFIG_DIR}/{$CONFIG_FILE}
+
+      {if $webgroup == ""}
+{t}Depending on the user name your webserver is running on:{/t}
+<tt>
+<pre> chown root:www-data {$CONFIG_DIR}/{$CONFIG_FILE}
+ chmod 640 {$CONFIG_DIR}/{$CONFIG_FILE}
+
+or
+
+ chown root:apache {$CONFIG_DIR}/{$CONFIG_FILE}
+ chmod 640 {$CONFIG_DIR}/{$CONFIG_FILE}
+</pre>
+{else}
+<pre>
+ chown root:{$webgroup} {$CONFIG_DIR}/{$CONFIG_FILE}
+ chmod 640 {$CONFIG_DIR}/{$CONFIG_FILE}
+</pre>
+{/if} 
        </tt>
        <p>     
                <input type='submit' name='getconf' value='{t}Download configuration{/t}'>