diff --git a/src/zabbix-proxy/install-service.sh b/src/zabbix-proxy/install-service.sh index 317538a..1657187 100644 --- a/src/zabbix-proxy/install-service.sh +++ b/src/zabbix-proxy/install-service.sh @@ -44,7 +44,7 @@ chmod 700 /var/lib/zabbix/ psk=$(openssl rand -hex 32) -echo "$psk" > /var/lib/zabbix/proxy.psk +sudo -u zabbix echo "$psk" > /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