diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-09-17 07:29:37 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-09-17 07:29:37 -0700 |
commit | 86681eebf7ee2bf28b12fd12ee6a5fe70bc36d0a (patch) | |
tree | 836340fed15a7e38ee1f862f85de0e1fba70392a /installer/cli.php | |
parent | a5af531fbee1db0c3a0ae0d23388245b2d2ec2de (diff) |
Move the check_environment into the installer helper and call it from the command line installer as well as the web installer.
Diffstat (limited to 'installer/cli.php')
-rw-r--r-- | installer/cli.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/installer/cli.php b/installer/cli.php index 50845ea4..182c3d26 100644 --- a/installer/cli.php +++ b/installer/cli.php @@ -30,6 +30,11 @@ if (installer::already_installed()) { return; } +$errors = installer::check_environment(); +if ($errors) { + oops(implode("errors", "\n")); +} + $config = parse_cli_params(); if (!installer::connect($config)) { oops("Unable to connect to the database.\n" . mysql_error() . "\n"); |