Skip to content
Snippets Groups Projects
Commit 04486904 authored by Andrew Dolgov's avatar Andrew Dolgov
Browse files

updater: add gunzip checking

parent 23be0bd3
No related branches found
No related tags found
No related merge requests found
...@@ -67,6 +67,17 @@ class Updater extends Plugin { ...@@ -67,6 +67,17 @@ class Updater extends Plugin {
$stop = true; break; $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..."); array_push($log, "Checking for latest version...");
$version_info = json_decode(fetch_file_contents("http://tt-rss.org/version.php"), $version_info = json_decode(fetch_file_contents("http://tt-rss.org/version.php"),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment