From: hickert Date: Mon, 17 May 2010 08:21:30 +0000 (+0000) Subject: Updated the setup procedure X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=baf195b6f50c3da561b54bb591a9e176b786de12;p=gosa.git Updated the setup procedure -Stripped out unused functionality git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18501 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/contrib/gosa.conf b/gosa-core/contrib/gosa.conf index 643b1dfdb..63d291ae0 100644 --- a/gosa-core/contrib/gosa.conf +++ b/gosa-core/contrib/gosa.conf @@ -62,7 +62,6 @@
- @@ -189,7 +188,7 @@ - + @@ -198,7 +197,7 @@ - + @@ -206,7 +205,7 @@ - + @@ -225,11 +224,7 @@ -{if $cv.mail == "Kolab" || $cv.mail == "Kolab22"} -{else} - -{/if} @@ -282,34 +277,14 @@ - - - -{if $cv.mail == "Kolab" || $cv.mail == "Kolab22"} -{else} - -{/if} - @@ -318,8 +293,6 @@ - - @@ -377,212 +350,14 @@ the gosa.conf(5) manual page. --> -
+
- -
diff --git a/gosa-core/html/setup.php b/gosa-core/html/setup.php index b402b0116..88aae85fa 100644 --- a/gosa-core/html/setup.php +++ b/gosa-core/html/setup.php @@ -24,6 +24,11 @@ require_once ("../include/php_setup.inc"); require_once ("functions.inc"); +// Do not use the GOsa default error handler. +// To do so we require a valid config object - and at this point +// we doesn't have one. +restore_error_handler(); + require_once("../setup/class_setup.inc"); require_once("../setup/class_setupStep.inc"); require_once("../setup/class_setupStep_Welcome.inc"); diff --git a/gosa-core/setup/class_setup.inc b/gosa-core/setup/class_setup.inc index 4f7c68b32..446e39217 100644 --- a/gosa-core/setup/class_setup.inc +++ b/gosa-core/setup/class_setup.inc @@ -35,15 +35,15 @@ class setup { $i = 1; $this->o_steps[$i++] = new Step_Welcome(); - $this->o_steps[$i++] = new Step_Language(); +# $this->o_steps[$i++] = new Step_Language(); $this->o_steps[$i++] = new Step_Checks(); $this->o_steps[$i++] = new Step_License(); $this->o_steps[$i++] = new Step_Ldap(); - $this->o_steps[$i++] = new Step_Schema(); - $this->o_steps[$i++] = new Step_Config1(); - $this->o_steps[$i++] = new Step_Config2(); - $this->o_steps[$i++] = new Step_Config3(); - $this->o_steps[$i++] = new Step_Migrate(); +# $this->o_steps[$i++] = new Step_Schema(); +# $this->o_steps[$i++] = new Step_Config1(); +# $this->o_steps[$i++] = new Step_Config2(); +# $this->o_steps[$i++] = new Step_Config3(); +# $this->o_steps[$i++] = new Step_Migrate(); $this->o_steps[$i++] = new Step_Feedback(); $this->o_steps[$i++] = new Step_Finish(); $this->i_steps = $i-1; diff --git a/gosa-core/setup/class_setupStep_Checks.inc b/gosa-core/setup/class_setupStep_Checks.inc index d231c4025..2a4d698b5 100644 --- a/gosa-core/setup/class_setupStep_Checks.inc +++ b/gosa-core/setup/class_setupStep_Checks.inc @@ -116,6 +116,14 @@ class Step_Checks extends setup_step $M = TRUE; $this->basic_checks[] = array("NAME" => $N , "DESC" => $D , "RESULT" => $R , "SOLUTION" => $S , "MUST" => $M ); + /* Is calendar module available/compiled/installed */ + $N = msgPool::checkingFor(_("Calendar")); + $D = _("GOsa requires this module to calculate dates."); + $S = msgPool::installPhpModule("calendar"); + $R = is_callable("cal_days_in_month"); + $M = TRUE; + $this->basic_checks[] = array("NAME" => $N , "DESC" => $D , "RESULT" => $R , "SOLUTION" => $S , "MUST" => $M ); + /* Mysql module loaded ? */ $N = msgPool::checkingFor(_("MySQL")); $D = _("GOsa requires this module to communicate with several supported databases."); diff --git a/gosa-core/setup/class_setupStep_Feedback.inc b/gosa-core/setup/class_setupStep_Feedback.inc index d655c2e5e..7b8b3570a 100644 --- a/gosa-core/setup/class_setupStep_Feedback.inc +++ b/gosa-core/setup/class_setupStep_Feedback.inc @@ -92,7 +92,7 @@ class Step_Feedback extends setup_step "NAME" => _("UNIX accounts/groups")); $this->features_used['samba'] = array("USED" => isset($oc['sambaSamAccount']) || isset($oc['sambaAccount']) , "NAME" => _("Samba management")); - $this->features_used['mail'] = array("USED" => $cv['mail'] != "none", + $this->features_used['mail'] = array("USED" => FALSE, "NAME" => _("Mailsystem management")); $this->features_used['fax'] = array("USED" => isset($oc['goFaxAccount']) , "NAME" => _("FAX system administration")); diff --git a/gosa-core/setup/setup_ldap.tpl b/gosa-core/setup/setup_ldap.tpl index 2aeadd2f3..ccc8d9e7f 100644 --- a/gosa-core/setup/setup_ldap.tpl +++ b/gosa-core/setup/setup_ldap.tpl @@ -37,7 +37,7 @@
-
{t}Connection URI{/t}
+
{t}Connection URI{/t}
diff --git a/gosa-core/setup/setup_welcome.tpl b/gosa-core/setup/setup_welcome.tpl index 5333adeab..a44d036ce 100644 --- a/gosa-core/setup/setup_welcome.tpl +++ b/gosa-core/setup/setup_welcome.tpl @@ -10,8 +10,6 @@
  • {t}Create a basic, single site configuration{/t}
  • {t}Tries to find problems within your PHP and LDAP setup{/t}
  • -
  • {t}Let you choose from a set of basic and advanced configuration switches{/t}
  • -
  • {t}Guided migration of existing LDAP trees{/t}

{t}What will the wizard NOT do for you?{/t}