Files
newznab-tmux/misc/update/multiprocessing/safe.php
T
2017-11-06 13:06:24 +01:00

17 lines
432 B
PHP

<?php
if (! isset($argv[1]) || ! in_array($argv[1], ['backfill', 'binaries'])) {
exit(
'First argument (mandatory):'.PHP_EOL.
'binaries => Do Safe Binaries update.'.PHP_EOL.
'backfill => Do Safe Backfill update.'.PHP_EOL
);
}
declare(ticks=1);
require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap.php';
use nntmux\libraries\Forking;
(new Forking())->processWorkType('safe_'.$argv[1]);