Fix: git module requires user to exist

Git module used by Pegleg requires user to exist in /etc/passwd file,
or at least to have USER environment set to something. This patch
sets the variable.

Change-Id: I7fbb60b856c6ee7c26ff0dcec5778687836bb8b3
This commit is contained in:
Roman Gorshunov 2019-06-26 20:52:33 +02:00 committed by Kaspars Skels
parent 145e45cd65
commit 29e92a499c
1 changed files with 4 additions and 0 deletions

View File

@ -114,6 +114,10 @@ pegleg() {
versions_lookup "['data']['images']['ucp']['pegleg']['pegleg']"
cat >> $ENV_FILE << EOF
USER=pegleg
EOF
docker run --rm --net=host $TERM_OPTS \
-u "${USER}:${GROUP}" \
-w /target \