show success in updater when there are no more old files to delete and exec() is disallowed (showed empty list)

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2019-10-09 12:05:04 +02:00
parent 2c23431daf
commit 050af61082

View File

@@ -319,8 +319,13 @@ if (\Froxlor\Froxlor::isDatabaseVersion('201907270')) {
if ($exec_allowed) {
lastStepStatus(0);
} else {
lastStepStatus(1, 'manual commands needed');
echo '<span class="update-step update-step-err">Please run the following commands manually:</span><br><pre>'.$del_list.'</pre><br>';
if (empty($del_list)) {
// non of the files existed
lastStepStatus(0);
} else {
lastStepStatus(1, 'manual commands needed');
echo '<span class="update-step update-step-err">Please run the following commands manually:</span><br><pre>'.$del_list.'</pre><br>';
}
}
\Froxlor\Froxlor::updateToDbVersion('201909150');