mirror of https://github.com/apache/cloudstack.git
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>
This commit is contained in:
parent
49d5713900
commit
16789a5ede
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue