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; }