summaryrefslogtreecommitdiff
path: root/update_daemon2.php
diff options
context:
space:
mode:
Diffstat (limited to 'update_daemon2.php')
-rwxr-xr-xupdate_daemon2.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/update_daemon2.php b/update_daemon2.php
index 1e8b1d072..8931813ff 100755
--- a/update_daemon2.php
+++ b/update_daemon2.php
@@ -10,7 +10,8 @@
require_once "autoload.php";
require_once "functions.php";
- require_once "sanity_check.php";
+
+ Config::sanity_check();
if (!function_exists('pcntl_fork')) {
die("error: This script requires PHP compiled with PCNTL module.\n");
@@ -188,7 +189,7 @@
"Maybe another daemon is already running.\n");
}
- if (get_schema_version() != SCHEMA_VERSION) {
+ if (Config::is_migration_needed()) {
die("Schema version is wrong, please upgrade the database.\n");
}