aboutsummaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2025-07-04 13:32:57 +0300
committerAndrew Dolgov <fox@fakecake.org>2025-07-04 13:32:57 +0300
commit05a90d4ce16cbf2a5c5143a78556e23dc35df8c8 (patch)
tree554be41303257ee7ef04ee4da8f19a238fc7583b /update.php
parent9b38a5757086e856f8086995874cf961e38328a7 (diff)
parent775a6066f1c2cf888417aab3cceca8119f5d3574 (diff)
Merge branch 'undying' into 'master'
Undying See merge request tt-rss/tt-rss!161
Diffstat (limited to 'update.php')
-rwxr-xr-xupdate.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/update.php b/update.php
index 093b5ae82..362d056a3 100755
--- a/update.php
+++ b/update.php
@@ -141,7 +141,8 @@
}
if (!isset($options['update-schema']) && Config::is_migration_needed()) {
- die("Schema version is wrong, please upgrade the database (--update-schema).\n");
+ print("Schema version is wrong, please upgrade the database (--update-schema).\n");
+ exit(1);
}
Debug::set_enabled(true);
@@ -188,8 +189,9 @@
// Try to lock a file in order to avoid concurrent update.
if (!$lock_handle) {
- die("error: Can't create lockfile ($lock_filename). ".
+ print("error: Can't create lockfile ($lock_filename). ".
"Maybe another update process is already running.\n");
+ exit(1);
}
if (isset($options["force-update"])) {