From f8d8762bdc00252bc48ee0e4958f0e6067c3f490 Mon Sep 17 00:00:00 2001 From: Rohit Yadav Date: Mon, 8 Apr 2019 16:42:25 +0530 Subject: [PATCH] packaging: systemctl daemon-reload after agent install or upgrade This runs systemctl daemon-reload after cloudstack-agent is installed or upgraded. Signed-off-by: Rohit Yadav --- packaging/centos7/cloud.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packaging/centos7/cloud.spec b/packaging/centos7/cloud.spec index 14520804e3eb..cb07e2b67544 100644 --- a/packaging/centos7/cloud.spec +++ b/packaging/centos7/cloud.spec @@ -436,6 +436,8 @@ if [ -f "%{_sysconfdir}/cloud.rpmsave/agent/agent.properties" ]; then mv %{_sysconfdir}/cloud.rpmsave/agent/agent.properties %{_sysconfdir}/cloud.rpmsave/agent/agent.properties.rpmsave fi +systemctl daemon-reload + %pre usage id cloud > /dev/null 2>&1 || /usr/sbin/useradd -M -c "CloudStack unprivileged user" \ -r -s /bin/sh -d %{_localstatedir}/cloudstack/management cloud|| true