function pass_finish($eventData) { global $innomaticLocale; $log = \Innomatic\Core\InnomaticContainer::instance('\\Innomatic\\Core\\InnomaticContainer')->getLogger(); \Innomatic\Setup\InnomaticSetup::finish($eventData, $log); }
public static function recursive_copy($source, $target) { if (is_dir($source)) { @mkdir($target); $d = dir($source); while (false !== ($entry = $d->read())) { if ($entry == '.' || $entry == '..' || $entry == 'temp') { continue; } $Entry = $source . '/' . $entry; if (is_dir($Entry)) { InnomaticSetup::recursive_copy($Entry, $target . '/' . $entry); continue; } copy($Entry, $target . '/' . $entry); } $d->close(); } else { copy($source, $target); } }
/** * Innomatic * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE. * * @copyright 1999-2014 Innomatic Company * @license http://www.innomatic.io/license/ New BSD License * @link http://www.innomatic.io */ require_once 'scripts_container.php'; $script = \Innomatic\Scripts\ScriptContainer::instance('\\Innomatic\\Scripts\\ScriptContainer'); ob_end_flush(); echo "\n Innomatic Cloud Applications Platform\n\n http://www.innomatic.io\n\n\n\n"; if (InnomaticContainer::instance('\\Innomatic\\Core\\InnomaticContainer')->getState() != InnomaticContainer::STATE_SETUP) { echo "Innomatic has been already installed.\n"; $script->cleanExit(1); } if (!isset($argv[1])) { $argv[1] = ''; } echo "Starting setup...\n"; if (\Innomatic\Setup\InnomaticSetup::setup_by_config_file($argv[1], true)) { echo "Setup successfull.\n"; $script->cleanExit(); } else { echo "ERROR. Setup unsuccessfull.\n"; $script->cleanExit(1); }