Code

Fixed single job start-stop handling
[gosa.git] / 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);
                                }