Code

Still broken
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 21 Jan 2008 17:10:31 +0000 (17:10 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 21 Jan 2008 17:10:31 +0000 (17:10 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8529 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/update-gosa

index c8cb4aa6e3bd4f3efe8ed086af8e94c207cd8253..f9c51ee19881144dd38b39484e5ae19f6cb157fe 100755 (executable)
@@ -85,7 +85,7 @@ function rescan_classes()
 {
        echo "Updating class cache...\n";
        $class_mapping= get_classes();
-       $filename= "include/class_location.inc";
+       $filename= GOSA_HOME."/include/class_location.inc";
 
        /* Sanity checks */
        if (!file_exists($filename) || is_writable($filename)) {
@@ -282,8 +282,8 @@ function install_plugin($file)
                                        echo "Failed to create '".PLUGSTATE_DIR."/$name - aborted";
                                        exit (3);
                                }
-                               if (!$handle= fopen(PLUGSTATE_DIR."/$name/plugin.lst, 'w')) {
-                                       echo "Cannot open file \"$filename\" - aborted\n";
+                               if (!$handle= fopen(PLUGSTATE_DIR."/$name/plugin.lst", 'w')) {
+                                       echo "Cannot open file '$filename' - aborted\n";
                                        exit (1);
                                }