cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chipchild...@apache.org
Subject [5/11] git commit: CLOUDSTACK-189: Fix post install and post uninstall rules
Date Tue, 25 Sep 2012 17:42:25 GMT
CLOUDSTACK-189: Fix post install and post uninstall rules

Link over folder, instead of files.
Patch fixes install failure, in case user does not remove old
installation.

Signed-off-by: Rohit Yadav <rohit.yadav@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/2d832c6c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/2d832c6c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/2d832c6c

Branch: refs/heads/junit-tests
Commit: 2d832c6cdec8950fb85ae005cf8cee467ea929b2
Parents: eb26f7a
Author: Rohit Yadav <rohit.yadav@citrix.com>
Authored: Tue Sep 25 12:02:34 2012 +0530
Committer: Wido den Hollander <wido@widodh.nl>
Committed: Tue Sep 25 11:51:53 2012 +0200

----------------------------------------------------------------------
 cloud.spec |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/2d832c6c/cloud.spec
----------------------------------------------------------------------
diff --git a/cloud.spec b/cloud.spec
index 908a411..d2b610e 100644
--- a/cloud.spec
+++ b/cloud.spec
@@ -388,13 +388,10 @@ else
 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/
+rm -fr %{_libdir}/%{name}/agent
+ln -f -s %{_libdir}/%{name}/common %{_libdir}/%{name}/agent
 
 %postun scripts
-rm -f %{_libdir}/%{name}/agent/scripts
-rm -f %{_libdir}/%{name}/agent/vms
 rm -fr %{_libdir}/%{name}/agent
 
 %post client


Mime
View raw message