univ-pau-ics/bin/update.php

15 lines
324 B
PHP
Raw Permalink Normal View History

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