moved crl-verify crl.pem to openvpn config templates

This commit is contained in:
vladimir.kuznetsov 2023-01-19 17:49:17 +03:00
parent 8ea80a616e
commit 45016b76e7
8 changed files with 7 additions and 9 deletions

View file

@ -125,6 +125,7 @@ void ClientInfoLogic::onRevokeOpenVpnCertificateClicked()
auto error = m_serverController->runScript(credentials, script);
if (isErrorOccured(error)) {
set_busyIndicatorIsRunning(false);
emit uiLogic()->goToPage(Page::ServerSettings);
return;
}
@ -136,14 +137,6 @@ void ClientInfoLogic::onRevokeOpenVpnCertificateClicked()
return;
}
error = m_serverController->uploadTextFileToContainer(container, credentials, "crl-verify crl.pem\n",
protocols::openvpn::serverConfigPath,
QSsh::SftpOverwriteMode::SftpAppendToExisting);
if (isErrorOccured(error)) {
set_busyIndicatorIsRunning(false);
return;
}
const QJsonObject &containerConfig = m_settings->containerConfig(uiLogic()->selectedServerIndex, container);
error = m_serverController->startupContainerWorker(credentials, container, containerConfig);
if (isErrorOccured(error)) {