make integritycheck in update-procedure more clear whether there actually is a problem or not (if it's been fixed for example), fixes #1493

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2015-02-11 12:08:58 +01:00
parent d6c708e6ee
commit 704a0fce08

View File

@@ -59,12 +59,12 @@ if (isFroxlor()) {
$integrity = new IntegrityCheck();
if (!$integrity->checkAll()) {
lastStepStatus(2, 'Monkeys ate the integrity');
lastStepStatus(1, 'Monkeys ate the integrity');
showUpdateStep("Trying to remove monkeys, feeding bananas");
if(!$integrity->fixAll()) {
lastStepStatus(2, 'Some monkeys just would not move');
lastStepStatus(2, 'Some monkeys just would not move, you should contact team@froxlor.org');
} else {
lastStepStatus(0);
lastStepStatus(0, 'Integrity restored');
}
} else {
lastStepStatus(0);