Code

Added html and documentation when calling update-gosa
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 14 Apr 2008 08:45:28 +0000 (08:45 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 14 Apr 2008 08:45:28 +0000 (08:45 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10389 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/update-gosa

index 616817d12eeec87b3f9fb5bde381405a22dc6e99..a223ca7e05ca0b6a1c3c7d31386792a63766b781 100755 (executable)
@@ -417,6 +417,10 @@ function install_plugin($file)
                                        /* Calculate destination */
                                        if (preg_match("%^.*locale/%", $source)){
                                                $dest= GOSA_HOME."/locale/plugin/$name/".preg_replace("%^.*locale/%", "", $source);
+                                       } elseif (preg_match("%^.*help/%", $source)) {
+                                               $dest= GOSA_HOME."/doc/plugin/$name/".preg_replace("%^.*help/%", "", $source);
+                                       } elseif (preg_match("%^.*html/%", $source)) {
+                                               $dest= GOSA_HOME."/html/$name/".preg_replace("%^.*html/%", "", $source);
                                        } else {
                                                $dest= GOSA_HOME."/plugins/".substr($entry->getPathName(), strlen($path) + 1);
                                        }