Skip to content

Commit ced75d0

Browse files
yadvrsudison
authored andcommitted
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 <[email protected]>
1 parent 1204005 commit ced75d0

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

cloud.spec

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,16 @@ else
387387
/sbin/service %{name}-agent condrestart >/dev/null 2>&1 || true
388388
fi
389389

390+
%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/
394+
395+
%postun scripts
396+
rm -f %{_libdir}/%{name}/agent/scripts
397+
rm -f %{_libdir}/%{name}/agent/vms
398+
rm -fr %{_libdir}/%{name}/agent
399+
390400
%post client
391401
if [ "$1" == "1" ] ; then
392402
/sbin/chkconfig --add %{name}-management > /dev/null 2>&1 || true

0 commit comments

Comments
 (0)