Add changing the uid and gid in docker through env variables

This commit is contained in:
kolaente 2020-05-22 18:11:20 +02:00
parent 0953400321
commit fa37d5bf59
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
2 changed files with 8 additions and 0 deletions

4
run.sh
View file

@ -11,4 +11,8 @@ VIKUNJA_API_URL=$(echo $VIKUNJA_API_URL |sed 's/\//\\\//g')
sed -i "s/http\:\/\/localhost\:3456\/api\/v1/$VIKUNJA_API_URL/g" /usr/share/nginx/html/index.html
# Set the uid and gid of the nginx run user
usermod --non-unique --uid ${PUID} nginx
groupmod --non-unique --gid ${PGID} nginx
nginx -g "daemon off;"