Removed restart of APISM.

This commit is contained in:
Gerhard Hoffmann 2023-08-09 16:14:59 +02:00
parent 72cb738af5
commit 927197d0d1

View File

@ -69,7 +69,8 @@ Worker::Worker(hwinf *hw,
, m_filesToUpdate() , m_filesToUpdate()
, m_updateProcessRunning(false) , m_updateProcessRunning(false)
, m_returnCode(0) , m_returnCode(0)
, m_progressValue{0} { , m_progressValue(0)
, m_withoutIsmasDirectPort(false) /* useful for testing */ {
QDir::setCurrent(m_workingDirectory); QDir::setCurrent(m_workingDirectory);
@ -137,15 +138,24 @@ void Worker::update() {
} }
void Worker::privateUpdate() { void Worker::privateUpdate() {
QPushButton *start = qobject_cast<QPushButton *>(QObject::sender());
start->setEnabled(false);
emit stopStartTimer();
emit disableExit();
m_updateProcessRunning = true; m_updateProcessRunning = true;
bool sentIsmasLastVersionNotification = false; bool sentIsmasLastVersionNotification = false;
//emit appendText("\nRestart APISM ...");
//startProgressLoop();
//Command c("systemctl restart apism");
//if (c.execute("/tmp")) {
// QThread::sleep(10); // give APISM some time to reconnect
// stopProgressLoop();
// emit replaceLast("Restart APISM ...", UPDATE_STEP_DONE);
//} else {
// stopProgressLoop();
// emit replaceLast("Restart APISM ...", UPDATE_STEP_FAIL);
//}
emit disableExit();
m_returnCode = -1; m_returnCode = -1;
QDir customerRepository(m_customerRepository); QDir customerRepository(m_customerRepository);
if (!customerRepository.exists()) { if (!customerRepository.exists()) {