univ-pau-ics/bin/update.php

15 lines
324 B
PHP

<?php require_once dirname(__DIR__).'/autoloader.php';
use \service\Updater;
debug();
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();