Skip to content

Commit 96611fc

Browse files
authored
packaging: systemctl daemon-reload after agent install or upgrade (#3269)
This runs systemctl daemon-reload after cloudstack-agent is installed or upgraded. Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 55efaf1 commit 96611fc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packaging/centos7/cloud.spec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,8 @@ if [ -f "%{_sysconfdir}/cloud.rpmsave/agent/agent.properties" ]; then
436436
mv %{_sysconfdir}/cloud.rpmsave/agent/agent.properties %{_sysconfdir}/cloud.rpmsave/agent/agent.properties.rpmsave
437437
fi
438438

439+
systemctl daemon-reload
440+
439441
%pre usage
440442
id cloud > /dev/null 2>&1 || /usr/sbin/useradd -M -c "CloudStack unprivileged user" \
441443
-r -s /bin/sh -d %{_localstatedir}/cloudstack/management cloud|| true

0 commit comments

Comments
 (0)