/** * @deprecated not used anywhere * wrapper function for reseting install to default one * all data will be lost */ function cos_reset_install() { cos_rm_files(); drop_db_default(); create_db(); load_db_default(); cos_create_files(); cos_chmod_files(); cos_install(); }
/** * prompt install command */ function heroku_prompt_install() { $res = common::execCommand("which heroku"); if ($res) { die('You wll need the heroku command. Download the heroku toolbelt'); } echo "Enabling addons ... wait\n"; heroku_enable_addons(); common::execCommand("cp misc/htaccess .htaccess"); common::execCommand("mkdir -p files/default"); common::execCommand("chmod -R 777 files"); common::execCommand("touch files/default/dummy.txt"); load_db_default(); common::echoMessage('Installing all modules. This may take a few minutes. Be patient'); install_from_profile(array('profile' => 'default')); useradd_add(); }