summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-12-25 12:26:29 +0400
committerAndrew Dolgov <[email protected]>2012-12-25 12:26:29 +0400
commit04486904820a324b8282f7063f574ca3c5e64813 (patch)
tree251a56f79ef99852c0eb9db02ca36888dbc5cbfd /plugins
parent23be0bd3fb661bc77e263baf50ea5906b363c6b1 (diff)
updater: add gunzip checking
Diffstat (limited to 'plugins')
-rw-r--r--plugins/updater/updater.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/updater/updater.php b/plugins/updater/updater.php
index 1dbd5ab66..b089e8134 100644
--- a/plugins/updater/updater.php
+++ b/plugins/updater/updater.php
@@ -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"),