From 2d72ff8fc9dc0980a75cd427ad11a2c1d3ea3c73 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Wed, 12 Jun 2024 21:53:35 +0200 Subject: use 'maintenance' file to stop background jobs when running DB upgrades --- update.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'update.sh') diff --git a/update.sh b/update.sh index d78f8a5..58e3663 100755 --- a/update.sh +++ b/update.sh @@ -12,9 +12,11 @@ if [ "$1" = "with-deps" ]; then carton install cd .. sudo systemctl stop travelynx + touch maintenance mv local local.old mv local.new/local . perl index.pl database migrate + rm -f maintenance sudo systemctl start travelynx elif perl index.pl database has-current-schema; then sudo systemctl reload travelynx -- cgit v1.2.3