You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by wi...@apache.org on 2012/09/24 12:49:49 UTC
[2/3] git commit: CLOUDSTACK-189: Fix install prefix change for rpms
with symlinks
CLOUDSTACK-189: Fix install prefix change for rpms with symlinks
The install prefix for scripts and vms/systemvm.iso/zip has changed
from /usr/lib(32/64)/cloud/agent/ to /usr/lib(32/64)/cloud/common/
Patch fixes by symlinking paths for backward compatibility
Signed-off-by: Rohit Yadav <ro...@citrix.com>
Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/fb975a98
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/fb975a98
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/fb975a98
Branch: refs/heads/master
Commit: fb975a98c68347ff45691b7a17a665a732314888
Parents: 0dc42ce
Author: Rohit Yadav <ro...@citrix.com>
Authored: Mon Sep 24 12:36:29 2012 +0530
Committer: Wido den Hollander <wi...@widodh.nl>
Committed: Mon Sep 24 12:45:10 2012 +0200
----------------------------------------------------------------------
cloud.spec | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/fb975a98/cloud.spec
----------------------------------------------------------------------
diff --git a/cloud.spec b/cloud.spec
index c1fe56a..908a411 100644
--- a/cloud.spec
+++ b/cloud.spec
@@ -387,6 +387,16 @@ else
/sbin/service %{name}-agent condrestart >/dev/null 2>&1 || true
fi
+%post scripts
+mkdir -p %{_libdir}/%{name}/agent
+ln -f -s %{_libdir}/%{name}/common/scripts %{_libdir}/%{name}/agent/
+ln -f -s %{_libdir}/%{name}/common/vms %{_libdir}/%{name}/agent/
+
+%postun scripts
+rm -f %{_libdir}/%{name}/agent/scripts
+rm -f %{_libdir}/%{name}/agent/vms
+rm -fr %{_libdir}/%{name}/agent
+
%post client
if [ "$1" == "1" ] ; then
/sbin/chkconfig --add %{name}-management > /dev/null 2>&1 || true