summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-01-04 02:32:41 +0400
committerAndrew Dolgov <[email protected]>2013-01-04 02:32:41 +0400
commit2ae2bb1f5292781eeba1557b4102a189958c140e (patch)
treed3eb759613a4017805aa275dbdc1ca68c50bdfb7
parent2ec1e00e2d06d8efc0bbd237674cd34b290d0b54 (diff)
updater: check for tar and gunzip using which
-rw-r--r--plugins/updater/init.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/updater/init.php b/plugins/updater/init.php
index b089e8134..6d1ebf36f 100644
--- a/plugins/updater/init.php
+++ b/plugins/updater/init.php
@@ -60,7 +60,7 @@ class Updater extends Plugin {
array_push($log, "Checking for tar...");
$system_rc = 0;
- system("tar --version >/dev/null", $system_rc);
+ system("which tar >/dev/null", $system_rc);
if ($system_rc != 0) {
array_push($log, "Could not run tar executable (RC=$system_rc).");
@@ -70,7 +70,7 @@ class Updater extends Plugin {
array_push($log, "Checking for gunzip...");
$system_rc = 0;
- system("gunzip --version >/dev/null", $system_rc);
+ system("which gunzip >/dev/null", $system_rc);
if ($system_rc != 0) {
array_push($log, "Could not run gunzip executable (RC=$system_rc).");