2017-09-12 17:03:41 +00:00
|
|
|
<?php require_once dirname(__DIR__).'/autoloader.php';
|
2017-09-12 16:09:51 +00:00
|
|
|
|
|
|
|
use \service\Updater;
|
2017-09-13 19:33:35 +00:00
|
|
|
debug();
|
2017-09-12 16:09:51 +00:00
|
|
|
|
2017-09-14 17:56:24 +00:00
|
|
|
if( !isset($argv[1]) )
|
|
|
|
die("Missing argument (server url)\n");
|
|
|
|
|
|
|
|
$_SERVER = [ 'SERVER_NAME' => $argv[1] ];
|
2017-09-12 16:09:51 +00:00
|
|
|
$upd = new Updater();
|
|
|
|
|
|
|
|
$upd->update();
|