From 0dc6ef906230f0e0c984a2ef9e02cded78a334e5 Mon Sep 17 00:00:00 2001 From: Thorsten Spille Date: Fri, 17 May 2024 17:37:00 +0200 Subject: [PATCH] fix permissions --- src/zabbix-proxy/install-service.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/zabbix-proxy/install-service.sh b/src/zabbix-proxy/install-service.sh index 1657187..d795e83 100644 --- a/src/zabbix-proxy/install-service.sh +++ b/src/zabbix-proxy/install-service.sh @@ -44,7 +44,8 @@ chmod 700 /var/lib/zabbix/ psk=$(openssl rand -hex 32) -sudo -u zabbix echo "$psk" > /var/lib/zabbix/proxy.psk +echo "$psk" > /var/lib/zabbix/proxy.psk +chown zabbix:zabbix /var/lib/zabbix/proxy.psk chmod 600 /var/lib/zabbix/proxy.psk sed -i "s/# TLSConnect=unencrypted/TLSConnect=psk/g" /etc/zabbix/zabbix_proxy.conf