Skip to content

Commit 2d832c6

Browse files
yadvrwido
authored andcommitted
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>
1 parent eb26f7a commit 2d832c6

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

cloud.spec

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -388,13 +388,10 @@ else
388388
fi
389389

390390
%post scripts
391-
mkdir -p %{_libdir}/%{name}/agent
392-
ln -f -s %{_libdir}/%{name}/common/scripts %{_libdir}/%{name}/agent/
393-
ln -f -s %{_libdir}/%{name}/common/vms %{_libdir}/%{name}/agent/
391+
rm -fr %{_libdir}/%{name}/agent
392+
ln -f -s %{_libdir}/%{name}/common %{_libdir}/%{name}/agent
394393

395394
%postun scripts
396-
rm -f %{_libdir}/%{name}/agent/scripts
397-
rm -f %{_libdir}/%{name}/agent/vms
398395
rm -fr %{_libdir}/%{name}/agent
399396

400397
%post client

0 commit comments

Comments
 (0)