diff options
author | Andrew Dolgov <[email protected]> | 2008-07-10 08:54:57 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2008-07-10 08:54:57 +0100 |
commit | 64eb624cad460c26bbebfc9dbfeecc1e0172b523 (patch) | |
tree | de296894a2ee1c2051180c9265ddcb34c929b177 /update_daemon.php | |
parent | edd56fe579f988907e30412447797f85c73f30f4 (diff) |
move php executable path for old-style daemon to config.php (bump version) (closes #212)
Diffstat (limited to 'update_daemon.php')
-rw-r--r-- | update_daemon.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/update_daemon.php b/update_daemon.php index 0e4efd38f..67a8781de 100644 --- a/update_daemon.php +++ b/update_daemon.php @@ -11,7 +11,6 @@ define('MAGPIE_CACHE_DIR', '/var/tmp/magpie-ttrss-cache-daemon'); define('SIMPLEPIE_CACHE_DIR', '/var/tmp/simplepie-ttrss-cache-daemon'); define('DISABLE_SESSIONS', true); - define('PHP_EXECUTABLE', '/usr/bin/php'); require_once "version.php"; @@ -24,6 +23,10 @@ require_once "sanity_check.php"; require_once "config.php"; + if (!defined('PHP_EXECUTABLE')) { + define('PHP_EXECUTABLE', '/usr/bin/php'); + } + if (!ENABLE_UPDATE_DAEMON) { die("Please enable option ENABLE_UPDATE_DAEMON in config.php\n"); } |