Skip to content

Commit

Permalink
fix: Add timeout before update command. See elabftw/elabftw#4948.
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasCARPi committed Feb 25, 2024
1 parent 35aacb2 commit 037fcfb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog for elabctl

## Version 3.6.3

* Add timeout before update command. See elabftw/elabftw#4948.

## Version 3.6.2

* Prevent issue with unset `BORG_REMOTE_PATH` env. Fix #36.
Expand Down
5 changes: 4 additions & 1 deletion elabctl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# https://github.com/elabftw/elabctl/
# © 2022 Nicolas CARPi @ Deltablot
# License: GPLv3
declare -r ELABCTL_VERSION='3.6.2'
declare -r ELABCTL_VERSION='3.6.3'

# default backup dir
declare BACKUP_DIR='/var/backups/elabftw'
Expand Down Expand Up @@ -548,6 +548,9 @@ function update
function update-db-schema
{
is-installed
echo "Waiting 15 seconds for the container to start before running update..."
sleep 15
echo "Running command 'bin/console db:update' in the container now"
docker exec -it "${ELAB_WEB_CONTAINER_NAME}" bin/console db:update
}

Expand Down

0 comments on commit 037fcfb

Please sign in to comment.