addFromString("/etc/ssh/mgmt/authorized_keys", $pubkey); $fi = $a->offsetGet("/etc/ssh/mgmt/authorized_keys"); /** @var PharFileInfo $fi */ $fi->chmod(0600); $file = $tmpfile; } catch (Exception $e) { EventLog::failure('Could not include ssh key for reboot-control in config.tgz', (string)$e); } } elseif (is_file($tmpfile) && is_readable($tmpfile)) { $file = $tmpfile; }