Address issue #3. Allow install in a custom directory. By default no root user is checked.

This commit is contained in:
Andrés Montañez
2013-06-17 21:17:31 -03:00
parent f8476197ac
commit 001fa82c51
2 changed files with 62 additions and 17 deletions
+16 -6
View File
@@ -1,9 +1,19 @@
#!/bin/sh
#VERSION:0.9.14
#!/usr/bin/env php
<?php
date_default_timezone_set('UTC');
SCRIPT=$(readlink -f $0)
DIR=$(dirname $SCRIPT)
PHP_BIN=$(which php)
$baseDir = dirname(dirname(__FILE__));
$PHP_BIN -d safe_mode=Off -f $DIR/mage.php -- $@
define('MAGALLANES_VERSION', '0.9.14');
// Preload
require_once $baseDir . '/Mage/spyc.php';
require_once $baseDir . '/Mage/Autoload.php';
spl_autoload_register(array('Mage_Autoload', 'autoload'));
// Clean arguments
array_shift($argv);
// Run Magallanes
$console = new Mage_Console;
$console->run($argv);