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:
parent
1620b73d01
commit
cbe1fd387d
@ -1001,9 +1001,16 @@ bool Worker::syncCustomerRepositoryAndFS() {
|
|||||||
progress += 5;
|
progress += 5;
|
||||||
setProgress(progress);
|
setProgress(progress);
|
||||||
if (!error) {
|
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);
|
setProgress(100);
|
||||||
emit replaceLast(QString("Sync customer environment with filesystem ..."), UPDATE_STEP_DONE);
|
emit replaceLast(QString("Sync customer environment with filesystem ..."), UPDATE_STEP_DONE);
|
||||||
return true;
|
return true;
|
||||||
|
} else {
|
||||||
|
// TODO: send message to ISMAS
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user