diff options
Diffstat (limited to 'zabbix_agentd/post-install')
-rwxr-xr-x | zabbix_agentd/post-install | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/zabbix_agentd/post-install b/zabbix_agentd/post-install index 6b814d18d..fcc9491ff 100755 --- a/zabbix_agentd/post-install +++ b/zabbix_agentd/post-install @@ -41,8 +41,9 @@ if [ -z `getent passwd | gawk -F: '{ print $1 }' | grep ^$ADD_USER$` ]; then fi # additional -chown $ADD_USER:$ADD_GROUP /var/log/zabbix/zabbix_agentd.* +chown -R $ADD_USER:$ADD_GROUP /var/log/zabbix_agentd chown -R $ADD_USER:$ADD_GROUP /var/run/zabbix_agentd +chown $ADD_USER:$ADD_GROUP /etc/zabbix/zabbix_agentd.conf sed -i "s|su daemon -c /usr/bin/zabbix_agentd|su $ADD_USER -c /usr/bin/zabbix_agentd|" /etc/rc.d/zabbix_agentd exit $ADD_STATUS |