Use user name instead of userid

Nginx unit needs the user and group parameter as names.
This commit is contained in:
Tobias Genannt 2021-09-24 08:16:07 +02:00
parent c9b3edd0f1
commit 5679ab435f
4 changed files with 5 additions and 4 deletions

View file

@ -95,6 +95,7 @@ WORKDIR /opt/netbox/netbox
# Must set permissions for '/opt/netbox/netbox/media' directory
# to g+w so that pictures can be uploaded to netbox.
RUN mkdir -p static /opt/unit/state/ /opt/unit/tmp/ \
&& chown -R unit:root media /opt/unit/ \
&& chmod -R g+w media /opt/unit/ \
&& cd /opt/netbox/ && /opt/netbox/venv/bin/python -m mkdocs build \
--config-file /opt/netbox/mkdocs.yml --site-dir /opt/netbox/netbox/project-static/docs/ \