Ejemplo n.º 1
0
    define('sugarEntry', true);
}
$_SESSION = array();
$_SESSION['schema_change'] = 'sugar';
// we force-run all SQL
$_SESSION['silent_upgrade'] = true;
$_SESSION['step'] = 'silent';
// flag to NOT try redirect to 4.5.x upgrade wizard
$_REQUEST = array();
$_REQUEST['addTaskReminder'] = 'remind';
define('SUGARCRM_INSTALL', 'SugarCRM_Install');
define('DCE_INSTANCE', 'DCE_Instance');
global $cwd;
$cwd = getcwd();
// default to current, assumed to be in a valid SugarCRM root dir.
$upgradeType = verifyArguments($argv, $usage_regular);
///////////////////////////////////////////////////////////////////////////////
//////  Verify that all the arguments are appropriately placed////////////////
$path = $argv[2];
// custom log file, if blank will use ./upgradeWizard.log
$subdirs = array('full', 'langpack', 'module', 'patch', 'theme', 'temp');
//$_REQUEST['zip_from_dir'] = $zip_from_dir;
define('SUGARCRM_PRE_INSTALL_FILE', 'scripts/pre_install.php');
define('SUGARCRM_POST_INSTALL_FILE', 'scripts/post_install.php');
define('SUGARCRM_PRE_UNINSTALL_FILE', 'scripts/pre_uninstall.php');
define('SUGARCRM_POST_UNINSTALL_FILE', 'scripts/post_uninstall.php');
echo "\n";
echo "********************************************************************\n";
echo "***************This Upgrade process may take sometime***************\n";
echo "********************************************************************\n";
echo "\n";
Ejemplo n.º 2
0
////	END USAGE
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
////	STANDARD REQUIRED SUGAR INCLUDES AND PRESETS
if (!defined('sugarEntry')) {
    define('sugarEntry', true);
}
$_SESSION = array();
$_SESSION['schema_change'] = 'sugar';
// we force-run all SQL
$_SESSION['silent_upgrade'] = true;
$_SESSION['step'] = 'silent';
// flag to NOT try redirect to 4.5.x upgrade wizard
$_REQUEST = array();
define('SUGARCRM_INSTALL', 'SugarCRM_Install');
verifyArguments($argv, $usage_regular);
///////////////////////////////////////////////////////////////////////////////
//////  Verify that all the arguments are appropriately placed////////////////
///////////////////////////////////////////////////////////////////////////////
////	PREP LOCALLY USED PASSED-IN VARS & CONSTANTS
$instance_path = $argv[1];
$template = $argv[2];
$old_template = $argv[3];
$user_name = isset($argv[4]) ? $argv[4] : "admin";
$unzip_dir = getcwd();
$logpath = $path = $instance_path . "/shadow_upgrade.log";
// FIXME: can we use regular pre-post scripts?
define('SUGARCRM_PRE_INSTALL_FILE', "{$unzip_dir}/scripts/shadow_pre_install.php");
define('SUGARCRM_POST_INSTALL_FILE', "{$unzip_dir}/scripts/shadow_post_install.php");
echo "\n";
echo "********************************************************************\n";