forked from qt-creator/qt-creator
Port to new connect api
Change-Id: I873a36601d54065b61d0666558b93dc839ad0dfc Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -67,8 +67,10 @@ void SshKeyDeployer::deployPublicKey(const SshConnectionParameters &sshParams,
|
||||
return;
|
||||
}
|
||||
|
||||
connect(&d->deployProcess, SIGNAL(connectionError()), SLOT(handleConnectionFailure()));
|
||||
connect(&d->deployProcess, SIGNAL(processClosed(int)), SLOT(handleKeyUploadFinished(int)));
|
||||
connect(&d->deployProcess, &SshRemoteProcessRunner::connectionError,
|
||||
this, &SshKeyDeployer::handleConnectionFailure);
|
||||
connect(&d->deployProcess, &SshRemoteProcessRunner::processClosed,
|
||||
this, &SshKeyDeployer::handleKeyUploadFinished);
|
||||
const QByteArray command = "test -d .ssh "
|
||||
"|| mkdir .ssh && chmod 0700 .ssh && echo '"
|
||||
+ reader.data() + "' >> .ssh/authorized_keys && chmod 0600 .ssh/authorized_keys";
|
||||
|
||||
Reference in New Issue
Block a user