diff --git a/pandora_agents/unix/pandora_agent.redhat.spec b/pandora_agents/unix/pandora_agent.redhat.spec index 57792256b1..f8e6aa78ab 100644 --- a/pandora_agents/unix/pandora_agent.redhat.spec +++ b/pandora_agents/unix/pandora_agent.redhat.spec @@ -64,6 +64,7 @@ rm -Rf $RPM_BUILD_ROOT getent passwd pandora >/dev/null || \ /usr/sbin/useradd -d %{prefix}/pandora -s /bin/false -M -g 0 pandora exit 0 +chown pandora:root /var/log/pandora %post if [ ! -d /etc/pandora ] ; then @@ -115,9 +116,6 @@ exit 0 /usr/bin/pandora_agent /usr/bin/pandora_agent_exec -%defattr(-,pandora,root,770) -/var/log/pandora/ - %defattr(755,pandora,root) /usr/bin/tentacle_client /etc/init.d/pandora_agent_daemon diff --git a/pandora_agents/unix/pandora_agent.spec b/pandora_agents/unix/pandora_agent.spec index c3c7d0b8ce..ef69a337c7 100644 --- a/pandora_agents/unix/pandora_agent.spec +++ b/pandora_agents/unix/pandora_agent.spec @@ -65,6 +65,7 @@ if [ "`id pandora | grep uid | wc -l`" = 0 ] then /usr/sbin/useradd -d %{prefix}/pandora -s /bin/false -M -g 0 pandora fi +chown pandora:root /var/log/pandora %post if [ ! -d /etc/pandora ] ; then @@ -115,9 +116,6 @@ exit 0 /usr/bin/pandora_agent /usr/bin/pandora_agent_exec -%defattr(-,pandora,root,770) -/var/log/pandora/ - %defattr(755,pandora,root) /usr/bin/tentacle_client /etc/init.d/pandora_agent_daemon