From b509b059f13550e3ac52410d332e0041aa506f20 Mon Sep 17 00:00:00 2001
From: andryyy
Date: Wed, 10 Jul 2013 18:27:51 +0200
Subject: Update init.php
---
plugins/updater/init.php | 2 ++
1 file changed, 2 insertions(+)
(limited to 'plugins/updater/init.php')
diff --git a/plugins/updater/init.php b/plugins/updater/init.php
index fa283c8be..69d9b08b2 100644
--- a/plugins/updater/init.php
+++ b/plugins/updater/init.php
@@ -24,6 +24,8 @@ class Updater extends Plugin {
// __FILE__ is in plugins/updater so we need to go one level up
$work_dir = dirname(dirname(dirname(__FILE__)));
$parent_dir = dirname($work_dir);
+ // Set PATH to run "which"
+ putenv('PATH="$PATH:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"');
$log = array();
if (!is_array($params)) $params = array();
--
cgit v1.2.3-54-g00ecf
From 59962a6ebd468cc61611097cf28f856968717a1b Mon Sep 17 00:00:00 2001
From: Andrew Dolgov
Date: Wed, 11 Sep 2013 15:17:22 +0400
Subject: updater: add button to call updateself dialog even if no next version
detected
---
plugins/updater/init.php | 4 ++++
1 file changed, 4 insertions(+)
(limited to 'plugins/updater/init.php')
diff --git a/plugins/updater/init.php b/plugins/updater/init.php
index 69d9b08b2..dc657e480 100644
--- a/plugins/updater/init.php
+++ b/plugins/updater/init.php
@@ -341,6 +341,10 @@ class Updater extends Plugin {
} else {
print_notice(__("Your Tiny Tiny RSS installation is up to date."));
+
+ print "
";
+
}
print ""; #pane
--
cgit v1.2.3-54-g00ecf
From b16e8ba8efa155750523e2eb1b140a3916b301b1 Mon Sep 17 00:00:00 2001
From: alok
Date: Sat, 12 Apr 2014 23:06:01 -0400
Subject: Fix permission on cache/upload after upgrade
The daemon complains about cache/upload after the updater upgrades the installation. This should fix the permissions.
---
plugins/updater/init.php | 1 +
1 file changed, 1 insertion(+)
(limited to 'plugins/updater/init.php')
diff --git a/plugins/updater/init.php b/plugins/updater/init.php
index dc657e480..ef48858b2 100644
--- a/plugins/updater/init.php
+++ b/plugins/updater/init.php
@@ -236,6 +236,7 @@ class Updater extends Plugin {
CACHE_DIR . "/images",
CACHE_DIR . "/js",
CACHE_DIR . "/simplepie",
+ CACHE_DIR . "/upload",
ICONS_DIR,
LOCK_DIRECTORY);
--
cgit v1.2.3-54-g00ecf
From 96aba17f013a8457d154a7ba5c85451cfd69d239 Mon Sep 17 00:00:00 2001
From: Bram Schoenmakers
Date: Wed, 17 Sep 2014 19:05:52 +0200
Subject: Updater: check whether system() is useable.
system() was disabled on my system for security reasons, but the
updater would just continue, only to find out that the tarball
hasn't been extracted.
---
plugins/updater/init.php | 14 ++++++++++++++
1 file changed, 14 insertions(+)
(limited to 'plugins/updater/init.php')
diff --git a/plugins/updater/init.php b/plugins/updater/init.php
index ef48858b2..6ee018f74 100644
--- a/plugins/updater/init.php
+++ b/plugins/updater/init.php
@@ -63,6 +63,20 @@ class Updater extends Plugin {
putenv("PATH=" . getenv("PATH") . PATH_SEPARATOR . "/bin" .
PATH_SEPARATOR . "/usr/bin");
+ array_push($log, "Checking for system() call...");
+
+ $disabled = explode(',', ini_get('disable_functions'));
+ foreach ($disabled as $function) {
+ if ( trim($function) == 'system' ) {
+ array_push($log, "Can not execute commands with PHP's system() function.");
+ $stop = true;
+ }
+ }
+
+ if ( $stop == true ) {
+ break;
+ }
+
array_push($log, "Checking for tar...");
$system_rc = 0;
--
cgit v1.2.3-54-g00ecf