1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 15:25:59 +00:00

updater: add gunzip checking

This commit is contained in:
Andrew Dolgov
2012-12-25 12:26:29 +04:00
parent 23be0bd3fb
commit 0448690482

View File

@@ -67,6 +67,17 @@ class Updater extends Plugin {
$stop = true; break;
}
array_push($log, "Checking for gunzip...");
$system_rc = 0;
system("gunzip --version >/dev/null", $system_rc);
if ($system_rc != 0) {
array_push($log, "Could not run gunzip executable (RC=$system_rc).");
$stop = true; break;
}
array_push($log, "Checking for latest version...");
$version_info = json_decode(fetch_file_contents("http://tt-rss.org/version.php"),