diff --git a/integration/scripts/files/elements/guest-agent/install.d/guest-agent-source-install/31-guest-agent-install b/integration/scripts/files/elements/guest-agent/install.d/guest-agent-source-install/31-guest-agent-install index 0cd630594b..cfb6b61ef5 100755 --- a/integration/scripts/files/elements/guest-agent/install.d/guest-agent-source-install/31-guest-agent-install +++ b/integration/scripts/files/elements/guest-agent/install.d/guest-agent-source-install/31-guest-agent-install @@ -16,7 +16,8 @@ for folder in "/var/lib/trove" "/etc/trove" "/etc/trove/certs" "/etc/trove/conf. chown -R ${GUEST_USERNAME}:root ${folder} done -install -D -g root -o ${GUEST_USERNAME} -m 0644 ${SCRIPTDIR}/guest-agent.logrotate /etc/logrotate.d/guest-agent +# The logrotate file owner should be root or user with uid 0. +install -D -g root -o root -m 0644 ${SCRIPTDIR}/guest-agent.logrotate /etc/logrotate.d/guest-agent # Create a virtual environment (with dependencies installed) for guest agent service /usr/bin/python3 -m venv ${GUEST_VENV} diff --git a/integration/scripts/files/elements/guest-agent/install.d/guest-agent-source-install/guest-agent.logrotate b/integration/scripts/files/elements/guest-agent/install.d/guest-agent-source-install/guest-agent.logrotate index 2a42143a49..235b4c4873 100644 --- a/integration/scripts/files/elements/guest-agent/install.d/guest-agent-source-install/guest-agent.logrotate +++ b/integration/scripts/files/elements/guest-agent/install.d/guest-agent-source-install/guest-agent.logrotate @@ -1,4 +1,4 @@ -/var/log/guest-agent.log { +/var/log/trove/trove-guestagent.log { daily rotate 10 missingok @@ -6,9 +6,4 @@ compress delaycompress sharedscripts - postrotate - # Signal name shall not have the SIG prefix in kill command - # http://pubs.opengroup.org/onlinepubs/9699919799/utilities/kill.html - kill -s USR1 $(cat /var/run/guest-agent.pid) - endscript }