univ-pau-ics/bin/update.php

13 lines
241 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] ];
$upd = new Updater();
$upd->update();