diff options
author | Brion Vibber <brion@pobox.com> | 2010-06-07 10:34:00 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-06-07 10:34:00 -0700 |
commit | 5a96b9e8052361f8eddecc56decd68d4611ccc19 (patch) | |
tree | f4c312f25151ed824c78e5b70e0ffcfed5bb4ee2 /lib/installer.php | |
parent | 41e9dba7297d43b7de0cb7665901869910d1047a (diff) | |
parent | 02c68ff5230e505dcfbb1dbd764415db8b8379ee (diff) |
Merge branch 'master' of gitorious.org:statusnet/mainline into testing
Diffstat (limited to 'lib/installer.php')
-rw-r--r-- | lib/installer.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/installer.php b/lib/installer.php index 58ffbfef7..7936d5d5d 100644 --- a/lib/installer.php +++ b/lib/installer.php @@ -81,9 +81,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', '<')) { |