X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Fsetup%2Fclass_setupStep_Finish.inc;h=a64fbcd05923e6b33d260f267773b05c56558737;hb=78e6abf46ca89aed3b8b8bb0bf7df88e0460deb0;hp=2d64638dcac59f939bf0f4794b51d5dc2893b35b;hpb=24ebfe3edf23f2ae073c752825a5abf449a37b11;p=gosa.git diff --git a/gosa-core/setup/class_setupStep_Finish.inc b/gosa-core/setup/class_setupStep_Finish.inc index 2d64638dc..a64fbcd05 100644 --- a/gosa-core/setup/class_setupStep_Finish.inc +++ b/gosa-core/setup/class_setupStep_Finish.inc @@ -24,7 +24,7 @@ class Step_Finish extends setup_step { var $gosa_conf_contrib = "/gosa.conf"; var $cfg_file_written = FALSE; - var $header_image= 'images/ldapserver.png'; + var $header_image = "images/setup/server.png"; function Step_Finish() { @@ -44,6 +44,7 @@ class Step_Finish extends setup_step { $smarty = get_smarty(); $smarty->assign("cv",xmlentities($this->parent->captured_values)); + $smarty->assign("config_checksum", md5(file_get_contents(CONFIG_TEMPLATE_DIR.$this->gosa_conf_contrib))); $str = $smarty->fetch(CONFIG_TEMPLATE_DIR.$this->gosa_conf_contrib); return($str); } @@ -52,10 +53,13 @@ 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 */ $exists = file_exists(CONFIG_DIR."/".CONFIG_FILE);