1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-17 06:52:27 +01:00

[bug] unable to cancel the upgrade before it begins

This commit is contained in:
Sylvain 2021-04-14 16:18:35 +02:00
parent 07ea6e8c69
commit ad6926ec1a
2 changed files with 5 additions and 2 deletions

View File

@ -3,8 +3,11 @@
## Next release
- Updated React and its dependencies to 17.0.3 and matching
- Fix a bug: unable to set date formats during installation
- Fix a bug: unable to cancel the upgrade before it begins
- `SUPERADMIN_EMAIL` renamed to `ADMINSYS_EMAIL`
- [TODO DEPLOY] `rails fablab:stripe:set_gateway`
- [TODO DEPLOY] `rails fablab:maintenance:rebuild_stylesheet`
- [TODO DEPLOY] `\curl -sSL https://raw.githubusercontent.com/sleede/fab-manager/master/scripts/rename-adminsys.sh | bash`
## v4.7.9
- Updated dependency to OpenLab

View File

@ -123,8 +123,9 @@ compile_assets()
upgrade()
{
[[ "$YES_ALL" = "true" ]] && confirm="y" || read -rp "Proceed with the upgrade? (Y/n) " confirm </dev/tty
if [[ "$confirm" == "n" ]]; then exit 2; fi
if [[ "$confirm" = "n" ]]; then exit 2; fi
add_environments
docker-compose pull "$SERVICE"
if [[ $? = 1 ]]; then
printf "An error occured, detected service name: %s\nExiting...", "$SERVICE"
@ -184,7 +185,6 @@ proceed()
parseparams "$@"
config
version_check
add_environments
upgrade
clean
}