added input-file option for automatic cli-installation

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-07-08 16:52:22 +02:00
parent 7c812df4e0
commit 430aefe0f7
5 changed files with 165 additions and 40 deletions

View File

@@ -70,7 +70,8 @@ class AutoUpdate
}
$latestversion = HttpClient::urlGet(self::UPDATE_URI . Froxlor::VERSION . $channel, true, 3);
} catch (Exception $e) {
throw new Exception("Version-check currently unavailable, please try again later", 504);
self::$lasterror = "Version-check currently unavailable, please try again later";
return -1;
}
self::$latestversion = json_decode($latestversion, true);

View File

@@ -71,6 +71,8 @@ class Install
asort($this->supportedOS);
// guess distribution and webserver to preselect in formfield
$webserverBackend = $this->webserverBackend;
$supportedOS = $this->supportedOS;
$guessedDistribution = $this->guessDistribution();
$guessedWebserver = $this->guessWebserver();