fix permissions

This commit is contained in:
Thorsten Spille 2024-05-17 17:32:59 +02:00
parent 404cf7f66c
commit 9b166bef7a

View File

@ -44,7 +44,7 @@ chmod 700 /var/lib/zabbix/
psk=$(openssl rand -hex 32) 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 chmod 600 /var/lib/zabbix/proxy.psk
sed -i "s/# TLSConnect=unencrypted/TLSConnect=psk/g" /etc/zabbix/zabbix_proxy.conf sed -i "s/# TLSConnect=unencrypted/TLSConnect=psk/g" /etc/zabbix/zabbix_proxy.conf