summaryrefslogtreecommitdiff
path: root/update_daemon.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-02-12 08:50:35 +0100
committerAndrew Dolgov <[email protected]>2006-02-12 08:50:35 +0100
commitc6784aea9c56409e3adc96c2bce0760c6740aac4 (patch)
tree78b0dbc093354fcbcf1b89b9557c08de1b92267a /update_daemon.php
parentb2620faa9f678255430baa7989f1282ca8b4ef47 (diff)
misc interface cleanups, only allow daemon to start when ENABLE_UPDATE_DAEMON is enabled
Diffstat (limited to 'update_daemon.php')
-rw-r--r--update_daemon.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/update_daemon.php b/update_daemon.php
index be118711b..b9d5d571a 100644
--- a/update_daemon.php
+++ b/update_daemon.php
@@ -11,6 +11,11 @@
require_once "sanity_check.php";
require_once "config.php";
+
+ if (!ENABLE_UPDATE_DAEMON) {
+ die("Please enable option ENABLE_UPDATE_DAEMON in config.php");
+ }
+
require_once "db.php";
require_once "db-prefs.php";
require_once "functions.php";