summaryrefslogtreecommitdiff
path: root/integration/scripts/files/elements/guest-agent/install.d/guest-agent-source-install/31-guest-agent-install
diff options
context:
space:
mode:
Diffstat (limited to 'integration/scripts/files/elements/guest-agent/install.d/guest-agent-source-install/31-guest-agent-install')
-rwxr-xr-xintegration/scripts/files/elements/guest-agent/install.d/guest-agent-source-install/31-guest-agent-install3
1 files changed, 2 insertions, 1 deletions
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 0cd63059..cfb6b61e 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}