diff --git a/states/qrz/install.sls b/states/qrz/install.sls index c93e323..29d53fb 100644 --- a/states/qrz/install.sls +++ b/states/qrz/install.sls @@ -23,8 +23,8 @@ qrz-binary-symlink: qrz-directory: file.directory: - name: /var/lib/qrz - - user: root - - group: root + - user: {{ qrz.user }} + - group: {{ qrz.group }} qrz-cleanup: software.cleanup: diff --git a/states/qrz/templates/qrz.service.j2 b/states/qrz/templates/qrz.service.j2 index e60b153..8492ac1 100644 --- a/states/qrz/templates/qrz.service.j2 +++ b/states/qrz/templates/qrz.service.j2 @@ -6,6 +6,7 @@ After=network.target postgresql.service [Service] Type=simple +User={{ qrz.user }} ExecStart={{ qrz.install_dir }}/qrz/qrz -configfile {{ qrz.install_dir }}/config/common.ini -port {{ qrz.port }} [Install]