Permalink
Browse files

Add UI to copy public SSH key to remote machine.

Signed-off-by: Volker Theile <votdev@gmx.de>
  • Loading branch information...
votdev committed Oct 5, 2018
1 parent adc4b0f commit f97145ec0630642133a8126b383047574eb96eac
Showing with 6 additions and 0 deletions.
  1. +6 −0 deb/openmediavault/usr/share/openmediavault/engined/rpc/certificatemgmt.inc
@@ -548,6 +548,12 @@ class CertificateMgmt extends \OMV\Rpc\ServiceAbstract {
]);
// Validate the parameters of the RPC service method.
$this->validateMethodParams($params, "rpc.certificatemgmt.copySshId");
// Check if the module is marked as dirty. Abort immediatelly if
// that is the case because the specified SSH certificate might
// not exist then.
if ($this->isModuleDirty("certificates")) {
throw new \OMV\Config\ConfigDirtyException();
}
// Simply ensure the specified SSH certificate exists.
$db = \OMV\Config\Database::getInstance();
$db->get("conf.system.certificate.ssh", $params['uuid']);

0 comments on commit f97145e

Please sign in to comment.