#!/usr/bin/env php command(new \module_console_aboutAuthors('about:authors')); $app->command(new \module_console_aboutLicense('about:license')); if( $app['phraseanet.configuration-tester']->isMigrable() || $app['phraseanet.configuration-tester']->isUpgradable() || $app['phraseanet.configuration-tester']->isInstalled() ) { $app->command(new \module_console_systemUpgrade('system:upgrade')); } if ($app['phraseanet.configuration-tester']->isInstalled()) { $app->command(new UpgradeDBDatas('system:upgrade-datas')); } $app->command(new \module_console_systemConfigCheck('check:system')); $app->command(new \Alchemy\Phrasea\Command\Setup\Install('system:install')); $result_code = is_int($app->run()) ? : 1; } catch (\Exception $e) { $result_code = 1; echo sprintf("\nAn error occured :\n\n\t\033[0;31m%s\033[0;37m\n\n", $e->getMessage()); } exit($result_code);