Code

Moved log service
[gosa.git] / gosa-core / update-gosa
index 4c63d13e00ddaec329ec737ec539872f78859477..d7f249d202afa3611a42a4fdce914c2d61b9d941 100755 (executable)
@@ -58,7 +58,7 @@ $class_mapping= get_classes();
 $filename= "include/class_location.inc";
 
 /* Sanity checks */
-if (is_writable($filename)) {
+if (!file_exists($filename) || is_writable($filename)) {
 
     if (!$handle= fopen($filename, 'w')) {
          echo "Cannot open file \"$filename\" - aborted\n";