1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-29 18:52:22 +01:00

(bug) unable to run the setup/upgrade scripts as root

yq has updated its docker image to prevent running as root so we need to provide the current user id when running the image

More info: https://github.com/mikefarah/yq/issues/890
This commit is contained in:
Sylvain 2021-11-16 17:17:08 +01:00
parent 65e9c30030
commit 501411e293
3 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,7 @@
# Changelog Fab-manager
- Fix a bug: unable to run the setup/upgrade scripts as root
## v5.1.12 2021 November 10
- Added an automated test on the plan creation endpoint

View File

@ -194,7 +194,7 @@ prepare_files()
}
yq() {
docker run --rm -i -v "${FABMANAGER_PATH}:/workdir" mikefarah/yq:4 "$@"
docker run --rm -i -v "${FABMANAGER_PATH}:/workdir" --user "$UID" mikefarah/yq:4 "$@"
}
prepare_nginx()

View File

@ -36,7 +36,7 @@ parseparams()
}
yq() {
docker run --rm -i -v "${PWD}:/workdir" mikefarah/yq:4 "$@"
docker run --rm -i -v "${PWD}:/workdir" --user "$UID" mikefarah/yq:4 "$@"
}
jq() {