# HG changeset patch # User Dan # Date 1231993754 18000 # Node ID 3fe11491f512aa6f9d7029ae9b7c53b468906c4b # Parent 68060328e9c6a3c66a285a0b37771d9189fbd686 Added already-installed check to cli-core diff -r 68060328e9c6 -r 3fe11491f512 install/includes/cli-core.php --- a/install/includes/cli-core.php Wed Jan 14 20:33:05 2009 -0500 +++ b/install/includes/cli-core.php Wed Jan 14 23:29:14 2009 -0500 @@ -30,6 +30,14 @@ exit; } +if ( defined('ENANO_INSTALLED') ) +{ + // start up the API to let it error out if something's wrong + require(ENANO_ROOT . '/includes/common.php'); + + installer_fail('Enano is already installed. Uninstall it by deleting config.php and creating a blank file called config.new.php.'); +} + // parse command line args foreach ( array('silent', 'driver', 'dbhost', 'dbuser', 'dbpasswd', 'dbname', 'db_prefix', 'user', 'pass', 'email', 'sitename', 'sitedesc', 'copyright', 'urlscheme', 'lang_id', 'scriptpath') as $var ) {