Fix user requirement in setup, cleanup.

This commit is contained in:
Niklas Keller
2015-12-21 00:01:25 +01:00
parent 5a4ab4a410
commit 37d054975c
6 changed files with 58 additions and 86 deletions

View File

@@ -61,13 +61,6 @@ class Setup implements Command {
$this->logger->info("New private key successfully saved.");
}
$user = $args->get("user") ?: "www-data";
$userInfo = posix_getpwnam($user);
if (!$userInfo) {
throw new RuntimeException("User doesn't exist: '{$user}'");
}
$acme = new AcmeService(new AcmeClient($server, $keyPair), $keyPair);
$this->logger->info("Registering with ACME server " . substr($server, 8) . " ...");