From: Andrew Dolgov Date: Tue, 25 Dec 2012 08:26:29 +0000 (+0400) Subject: updater: add gunzip checking X-Git-Tag: 1.7.0~126 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=04486904820a324b8282f7063f574ca3c5e64813;p=tt-rss.git updater: add gunzip checking --- diff --git a/plugins/updater/updater.php b/plugins/updater/updater.php index 1dbd5ab6..b089e813 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"),