summaryrefslogtreecommitdiff
path: root/lib/installer.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-06-11 12:05:53 -0700
committerBrion Vibber <brion@pobox.com>2010-06-11 12:05:53 -0700
commit7f3b3620af2af88ced37da1d9f8913cfd1a31b90 (patch)
tree13f137c377c3dfebbb2e749866e958ede08c2d24 /lib/installer.php
parente81f17e911f59c5ba68fddefd318ea6caf25924c (diff)
parent47665e845ae74e6ee5b9a39565fb45dd9a93f921 (diff)
Merge branch 'testing' of gitorious.org:statusnet/mainline into 0.9.x
Diffstat (limited to 'lib/installer.php')
-rw-r--r--lib/installer.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/installer.php b/lib/installer.php
index 1cad2fd20..56b9b6f4a 100644
--- a/lib/installer.php
+++ b/lib/installer.php
@@ -82,9 +82,12 @@ abstract class Installer
{
$pass = true;
- if (file_exists(INSTALLDIR.'/config.php')) {
- $this->warning('Config file "config.php" already exists.');
- $pass = false;
+ $config = INSTALLDIR.'/config.php';
+ if (file_exists($config)) {
+ if (!is_writable($config) || filesize($config) > 0) {
+ $this->warning('Config file "config.php" already exists.');
+ $pass = false;
+ }
}
if (version_compare(PHP_VERSION, '5.2.3', '<')) {