Skip to content

Commit

Permalink
Merge pull request #35 from roles-ansible/usr
Browse files Browse the repository at this point in the history
Run as user in systemd service
  • Loading branch information
DO1JLR authored Feb 12, 2024
2 parents e230d0f + 37704a6 commit ffa80c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions templates/etebase.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
Description=Execute the etebase server.

[Service]
User={{ etebase__user }}
Group={{ etebase__group }}
WorkingDirectory={{ etebase__user_home }}/etebase_{{ etebase_version_target }}
ExecStart={{ etebase__venv }}/bin/uvicorn etebase_server.asgi:application --uds {{ etebase__socket }}
Restart=always
Expand Down
2 changes: 1 addition & 1 deletion vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ etebase__repo_api: 'https://api.github.com/repos/etesync/server/tags'
etebase__venv: "{{ etebase__venv_path }}/{{ etebase_version_target }}"

# versionscheck
playbook_version_number: 17 # should be a integer
playbook_version_number: 18 # should be a integer
playbook_version_path: 'role-do1jlr.etebase'

0 comments on commit ffa80c3

Please sign in to comment.