1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-19 13:54:25 +01:00

[bug] unable to run the upgrade script with docker-compose >= v1.19

Previously, even with a recent versio of Fab-manager, the upgrade script failed with the following error:
the input device is not a TTY
the input device is not a TTY

You must upgrade Fab-manager to v2.8.3 first.
This commit is contained in:
Sylvain 2020-12-07 10:13:51 +01:00
parent af9c21b9fe
commit 208ba793ed
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,7 @@
# Changelog Fab-manager
## Next release
- Fix a bug: unable to run the upgrade script with docker-compose >= v1.19
## v4.6.4 2020 December 1st

View File

@ -75,9 +75,9 @@ version_error()
version_check()
{
VERSION=$(docker-compose exec "$SERVICE" cat .fabmanager-version)
VERSION=$(docker-compose exec -T "$SERVICE" cat .fabmanager-version)
if [[ $? = 1 ]]; then
VERSION=$(docker-compose exec "$SERVICE" cat package.json | grep version | awk 'BEGIN { FS = "\"" } ; {print $4}')
VERSION=$(docker-compose exec -T "$SERVICE" cat package.json | grep version | awk 'BEGIN { FS = "\"" } ; {print $4}')
fi
if verlt "$VERSION" 2.8.3; then