You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ro...@apache.org on 2019/04/09 08:52:43 UTC
[cloudstack] branch 4.12 updated: packaging: systemctl
daemon-reload after agent install or upgrade (#3269)
This is an automated email from the ASF dual-hosted git repository.
rohit pushed a commit to branch 4.12
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/4.12 by this push:
new 96611fc packaging: systemctl daemon-reload after agent install or upgrade (#3269)
new 9488c6d Merge remote-tracking branch 'origin/4.11' into 4.12
96611fc is described below
commit 96611fc64004fe9570c62ed2f6f5b200b32e75ab
Author: Rohit Yadav <ro...@apache.org>
AuthorDate: Tue Apr 9 14:21:09 2019 +0530
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 <ro...@shapeblue.com>
---
packaging/centos7/cloud.spec | 2 ++
1 file changed, 2 insertions(+)
diff --git a/packaging/centos7/cloud.spec b/packaging/centos7/cloud.spec
index 1452080..cb07e2b 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