diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-06-12 21:53:35 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-06-12 21:53:35 +0200 |
commit | 2d72ff8fc9dc0980a75cd427ad11a2c1d3ea3c73 (patch) | |
tree | f9cec0da5ac910126d2667b55ec0414cb56e55a1 /update.sh | |
parent | 0b725cbf6649608e6b29e38f9eb081fc8a37257a (diff) |
use 'maintenance' file to stop background jobs when running DB upgrades
Diffstat (limited to 'update.sh')
-rwxr-xr-x | update.sh | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |