mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-19 13:54:25 +01:00
fix bug: script mount-proof-of-identity-files unable to modify docker-compose.yml
This commit is contained in:
parent
aa9ec321e0
commit
eb6f04d2ad
@ -3,6 +3,7 @@
|
||||
## next deploy
|
||||
|
||||
- Fix a bug: when machines module disabled, Associated machines is still shown in trainings list
|
||||
- Fix a bug: script mount-proof-of-identity-files unable to modify docker-compose.yml
|
||||
|
||||
## v5.4.0 2022 May 12
|
||||
|
||||
|
@ -22,7 +22,10 @@ add_mount()
|
||||
if [[ ! $(yq eval ".services.$SERVICE.volumes.[] | select (. == \"*payment_schedules\")" docker-compose.yml) ]]; then
|
||||
# shellcheck disable=SC2016
|
||||
# we don't want to expand ${PWD}
|
||||
# change docker-compose.yml permissions for fix yq can't modify file issue
|
||||
chmod 666 docker-compose.yml
|
||||
yq -i eval ".services.$SERVICE.volumes += [\"\${PWD}/payment_schedules:/usr/src/app/payment_schedules\"]" docker-compose.yml
|
||||
chmod 644 docker-compose.yml
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -22,7 +22,10 @@ add_mount()
|
||||
if [[ ! $(yq eval ".services.$SERVICE.volumes.[] | select (. == \"*proof_of_identity_files\")" docker-compose.yml) ]]; then
|
||||
# shellcheck disable=SC2016
|
||||
# we don't want to expand ${PWD}
|
||||
# change docker-compose.yml permissions for fix yq can't modify file issue
|
||||
chmod 666 docker-compose.yml
|
||||
yq -i eval ".services.$SERVICE.volumes += [\"\${PWD}/proof_of_identity_files:/usr/src/app/proof_of_identity_files\"]" docker-compose.yml
|
||||
chmod 644 docker-compose.yml
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user