summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 17ef0d0)
raw | patch | inline | side by side (parent: 17ef0d0)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 9 Feb 2009 13:58:09 +0000 (13:58 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 9 Feb 2009 13:58:09 +0000 (13:58 +0000) |
-Fixes dependency problem in class_user.inc
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13409 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13409 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/setup/class_setupStep_Checks.inc | patch | blob | history |
diff --git a/gosa-core/setup/class_setupStep_Checks.inc b/gosa-core/setup/class_setupStep_Checks.inc
index 3bcf510c14a3f0f6246a26ef3bb8b60d16e1811f..0afb98c5f970b29d06cdcfd9a15e1782f9d0a6a9 100644 (file)
$M = TRUE;
$this->basic_checks[] = array("NAME" => $N , "DESC" => $D , "RESULT" => $R , "SOLUTION" => $S , "MUST" => $M );
+ /* Read data written by convert */
+ $output= "";
+ $sh= popen("convert", 'r');
+ while (!feof($sh)){
+ $output.= fread($sh, 4096);
+ }
+ pclose($sh);
+ $N = msgPool::checkingFor(_("imagick"));
+ $D = _("GOsa requires this extension to handle images.");
+ $S = msgPool::installPhpModule("php5-imagick");
+ $R = is_callable("imagick_blob2image") || !empty($output);
+ $M = TRUE;
+ $this->basic_checks[] = array("NAME" => $N , "DESC" => $D , "RESULT" => $R , "SOLUTION" => $S , "MUST" => $M );
/* PHP Configuration checks */
$M = FALSE;
$this->is_writeable[] = array("NAME" => $N , "DESC" => $D , "RESULT" => $R , "SOLUTION" => $S , "MUST" => $M );
- /* If we have writeaccess to the config dir, check if there is already a config file */
-# if($R){
-#
-# /* check if there is already a config file. */
-# $N = _("No old configuration file.");
-# $D = "";//_("");
-# $S = _("If there is already a configuration file, this file will be overwritten when GOsa setup finishes. Please move your old config file away.");
-# $R = !file_exists(CONFIG_DIR."/".CONFIG_FILE);
-# $M = FALSE;
-# $this->is_writeable[] = array("NAME" => $N , "DESC" => $D , "RESULT" => $R , "SOLUTION" => $S , "MUST" => $M );
-# }
}