summaryrefslogtreecommitdiff
path: root/update.sh
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-06-12 21:53:35 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-06-12 21:53:35 +0200
commit2d72ff8fc9dc0980a75cd427ad11a2c1d3ea3c73 (patch)
treef9cec0da5ac910126d2667b55ec0414cb56e55a1 /update.sh
parent0b725cbf6649608e6b29e38f9eb081fc8a37257a (diff)
use 'maintenance' file to stop background jobs when running DB upgrades
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh2
1 files changed, 2 insertions, 0 deletions
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