Merge "Issue #18 - wes2bridge will now correctly handle starting multiple instances of edex; a new wes2bridge.instance jvm parameter was added to edex so the edex service startup script will be able to correctly determine which edex instance is associated with a particular wes2bridge case." into 9-Wes2Bridge

Former-commit-id: f49e1f5e03 [formerly 9a0f313c23] [formerly 65b8521ccb] [formerly d45249fb2f [formerly 65b8521ccb [formerly 866c197c927445c1572fd19da1ebd3c8dee46d97]]]
Former-commit-id: d45249fb2f
Former-commit-id: 0ce00cf1a62830ded14e3abd22f133c7ff516662 [formerly f5c96c4af2]
Former-commit-id: bf867f91d3
This commit is contained in:
Greg Armendariz 2012-03-17 10:35:17 -05:00 committed by Gerrit Code Review
commit 5a0a8b242e
5 changed files with 15 additions and 0 deletions

View file

@ -203,6 +203,21 @@ fi
%pre %pre
%post %post
# We need to create a link to the python shared library if it does not exist.
pushd . > /dev/null 2>&1
if [ -d /awips2/python/lib ]; then
cd /awips2/python/lib
if [ -L libpython.so ]; then
# Ensure that we are pointing to the correct shared library.
rm -f libpython.so
fi
if [ -f libpython2.7.so.1.0 ]; then
ln -s libpython2.7.so.1.0 libpython.so
fi
fi
popd > /dev/null 2>&1
%preun %preun
%postun %postun