fix wrong database-update procedure in update-command, fix distribution guessing on installation

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2023-11-12 13:08:40 +01:00
parent d52f33a50c
commit b53b3a924a
3 changed files with 3 additions and 2 deletions

View File

@@ -410,7 +410,7 @@ class Install
} else {
$osrf = explode("\n", file_get_contents('/etc/os-release'));
foreach ($osrf as $line) {
$osrfline = explode("\n", $line);
$osrfline = explode("=", $line);
if ($osrfline[0] == 'VERSION_CODENAME') {
$os_dist['VERSION_CODENAME'] = $osrfline[1];
} else if ($osrfline[0] == 'ID') {