diff --git a/CHANGELOG.md b/CHANGELOG.md index f7d065a24..e96bcf2cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/scripts/mount-payment-schedules.sh b/scripts/mount-payment-schedules.sh index a8be656bd..a785e32b8 100644 --- a/scripts/mount-payment-schedules.sh +++ b/scripts/mount-payment-schedules.sh @@ -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 } diff --git a/scripts/mount-proof-of-identity-files.sh b/scripts/mount-proof-of-identity-files.sh index c885371e5..02d4ff297 100644 --- a/scripts/mount-proof-of-identity-files.sh +++ b/scripts/mount-proof-of-identity-files.sh @@ -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 }