remove unnecessary things

This commit is contained in:
Andras Bacsai
2023-09-14 10:56:25 +02:00
parent 4a4d73b87b
commit 49f8abcd79

View File

@@ -56,7 +56,7 @@ function removePrivateKeyFromSshAgent(Server $server)
} }
processWithEnv()->run("echo '{$server->privateKey->private_key}' | ssh-add -d -"); processWithEnv()->run("echo '{$server->privateKey->private_key}' | ssh-add -d -");
} }
function addPrivateKeyToSshAgent(Server $server, bool $onlyRemove = false) function addPrivateKeyToSshAgent(Server $server)
{ {
if (data_get($server, 'privateKey.private_key') === null) { if (data_get($server, 'privateKey.private_key') === null) {
throw new \Exception("Server {$server->name} does not have a private key"); throw new \Exception("Server {$server->name} does not have a private key");