Changeset View
Changeset View
Standalone View
Standalone View
scripts/ssh/ssh-auth.php
#!/usr/bin/env php | #!/usr/bin/env php | ||||
<?php | <?php | ||||
$root = dirname(dirname(dirname(__FILE__))); | $root = dirname(dirname(dirname(__FILE__))); | ||||
require_once $root.'/scripts/init/init-script.php'; | require_once $root.'/scripts/init/init-script.php'; | ||||
$error_log = id(new PhutilErrorLog()) | |||||
->setLogName(pht('SSH Error Log')) | |||||
->setLogPath(PhabricatorEnv::getEnvConfig('log.ssh-error.path')) | |||||
->activateLog(); | |||||
// TODO: For now, this is using "parseParital()", not "parse()". This allows | // TODO: For now, this is using "parseParital()", not "parse()". This allows | ||||
// the script to accept (and ignore) additional arguments. This preserves | // the script to accept (and ignore) additional arguments. This preserves | ||||
// backward compatibility until installs have time to migrate to the new | // backward compatibility until installs have time to migrate to the new | ||||
// syntax. | // syntax. | ||||
$args = id(new PhutilArgumentParser($argv)) | $args = id(new PhutilArgumentParser($argv)) | ||||
->parsePartial( | ->parsePartial( | ||||
array( | array( | ||||
▲ Show 20 Lines • Show All 142 Lines • Show Last 20 Lines |