After "rsync", compare etc/psa_tariff and /etc/psa_tariff, if they contain the

same traiff-files (as they should).
This commit is contained in:
Gerhard Hoffmann 2023-08-22 12:31:15 +02:00
parent 1620b73d01
commit cbe1fd387d

View File

@ -1001,9 +1001,16 @@ bool Worker::syncCustomerRepositoryAndFS() {
progress += 5;
setProgress(progress);
if (!error) {
// now check tariff-files in etc and /etc/psa_tariff
QDir dir1(QDir::cleanPath(m_customerRepository + QDir::separator() + "etc/psa_tariff"));
QDir dir2("/etc/psa_tariff");
if (Utils::sameFilesInDirs(dir1, dir2)) {
setProgress(100);
emit replaceLast(QString("Sync customer environment with filesystem ..."), UPDATE_STEP_DONE);
return true;
} else {
// TODO: send message to ISMAS
}
}
}
}