aboutsummaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2013-05-29 08:00:52 -0400
committerCash Costello <cash.costello@gmail.com>2013-05-29 08:00:52 -0400
commit28c43f6c615fba77d81f59e73ef29ba9d58049ea (patch)
treeb4bb6f2be3bd9df4fb7bd07415eef1f72cd18fea /install
parent07d533b21c2433c43fe8b36504d38debcfdb3920 (diff)
downloadelgg-28c43f6c615fba77d81f59e73ef29ba9d58049ea.tar.gz
elgg-28c43f6c615fba77d81f59e73ef29ba9d58049ea.tar.bz2
fixed location of parameters in cli installer script
Diffstat (limited to 'install')
-rw-r--r--install/cli/sample_installer.php40
1 files changed, 21 insertions, 19 deletions
diff --git a/install/cli/sample_installer.php b/install/cli/sample_installer.php
index 0bae0cd23..a51f9aae4 100644
--- a/install/cli/sample_installer.php
+++ b/install/cli/sample_installer.php
@@ -1,28 +1,12 @@
<?php
+
/**
* Sample cli installer script
*/
+// change to true to run this script. Change back to false when done.
$enabled = false;
-// Do not edit below this line. //////////////////////////////
-
-
-if (!$enabled) {
- echo "To enable this script, change \$enabled to true.\n";
- echo "You *must* disable this script after a successful installation.\n";
- exit;
-}
-
-if (PHP_SAPI !== 'cli') {
- echo "You must use the command line to run this script.";
- exit;
-}
-
-require_once(dirname(dirname(__FILE__)) . "/ElggInstaller.php");
-
-$installer = new ElggInstaller();
-
// none of the following may be empty
$params = array(
// database parameters
@@ -43,11 +27,29 @@ $params = array(
'password' => '',
);
+
+// Do not edit below this line. //////////////////////////////
+
+
+if (!$enabled) {
+ echo "To enable this script, change \$enabled to true.\n";
+ echo "You *must* disable this script after a successful installation.\n";
+ exit;
+}
+
+if (PHP_SAPI !== 'cli') {
+ echo "You must use the command line to run this script.";
+ exit;
+}
+
+require_once(dirname(dirname(__FILE__)) . "/ElggInstaller.php");
+
+$installer = new ElggInstaller();
+
// install and create the .htaccess file
$installer->batchInstall($params, TRUE);
// at this point installation has completed (otherwise an exception halted execution).
-
// try to rewrite the script to disable it.
if (is_writable(__FILE__)) {
$code = file_get_contents(__FILE__);