From ccba030a2e340650db7d67ebe31c899efcc9cd49 Mon Sep 17 00:00:00 2001 From: Paul Date: Fri, 6 Sep 2024 17:16:23 +0200 Subject: [PATCH] updated qrz state --- states/qrz/install.sls | 4 ++-- states/qrz/templates/qrz.service.j2 | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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]