From: cajus Date: Wed, 16 Jan 2008 17:02:07 +0000 (+0000) Subject: Updated gosa-updater X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=31438676de05a2911cefd7c728cb1a9315708def;p=gosa.git Updated gosa-updater git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8420 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/update-gosa b/gosa-core/update-gosa index 4c63d13e0..d7f249d20 100755 --- a/gosa-core/update-gosa +++ b/gosa-core/update-gosa @@ -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";