__netbox_{gunicorn,uwsgi}: add netbox ownership to config file

This commit is contained in:
matze 2020-09-05 22:27:42 +02:00
parent 090a8f015e
commit 9d330a91bc
2 changed files with 4 additions and 2 deletions

View File

@ -14,7 +14,8 @@ mkdir "$__object/files"
# gunicorn config file
__file /opt/netbox/gunicorn.py \
--mode 644 --source "$__object/files/gunicorn.py"
--mode 644 --owner netbox \
--source "$__object/files/gunicorn.py"
# install service file
__systemd_unit gunicorn-netbox.service \

View File

@ -13,7 +13,8 @@ mkdir "$__object/files"
# uwsgi config file
# TODO maybe patching with __key_value cause of .ini ?
__file /opt/netbox/uwsgi.ini \
--mode 644 --source "$__object/files/uwsgi.ini"
--mode 644 --owner netbox \
--source "$__object/files/uwsgi.ini"
# install service file
__systemd_unit uwsgi-netbox.service \