1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_etebase.git synced 2024-08-16 10:19:52 +02:00

Merge pull request #35 from roles-ansible/usr

Run as user in systemd service
This commit is contained in:
L3D 2024-02-12 22:11:01 +01:00 committed by GitHub
commit ffa80c3d5b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

@ -4,6 +4,8 @@
Description=Execute the etebase server. Description=Execute the etebase server.
[Service] [Service]
User={{ etebase__user }}
Group={{ etebase__group }}
WorkingDirectory={{ etebase__user_home }}/etebase_{{ etebase_version_target }} WorkingDirectory={{ etebase__user_home }}/etebase_{{ etebase_version_target }}
ExecStart={{ etebase__venv }}/bin/uvicorn etebase_server.asgi:application --uds {{ etebase__socket }} ExecStart={{ etebase__venv }}/bin/uvicorn etebase_server.asgi:application --uds {{ etebase__socket }}
Restart=always Restart=always

View file

@ -4,5 +4,5 @@ etebase__repo_api: 'https://api.github.com/repos/etesync/server/tags'
etebase__venv: "{{ etebase__venv_path }}/{{ etebase_version_target }}" etebase__venv: "{{ etebase__venv_path }}/{{ etebase_version_target }}"
# versionscheck # versionscheck
playbook_version_number: 17 # should be a integer playbook_version_number: 18 # should be a integer
playbook_version_path: 'role-do1jlr.etebase' playbook_version_path: 'role-do1jlr.etebase'