Code

Updated gosa-updater
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 16 Jan 2008 17:02:07 +0000 (17:02 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 16 Jan 2008 17:02:07 +0000 (17:02 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8420 594d385d-05f5-0310-b6e9-bd551577e9d8

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";