summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 77a0c99)
raw | patch | inline | side by side (parent: 77a0c99)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 16 Jan 2008 17:02:07 +0000 (17:02 +0000) | ||
committer | cajus <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 | patch | blob | history |
diff --git a/gosa-core/update-gosa b/gosa-core/update-gosa
index 4c63d13e00ddaec329ec737ec539872f78859477..d7f249d202afa3611a42a4fdce914c2d61b9d941 100755 (executable)
--- a/gosa-core/update-gosa
+++ b/gosa-core/update-gosa
$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";