OPENDJ-2364 Use force to upgrade packages
Use the '--force' option to upgrade package because we have mandatory
upgrade tasks which requires user confirmation since OpenDJ 3.0.0.
| | |
| | | # For being secure, we check the buildinfo file too. |
| | | if [ -f ${deb.prefix}/config/buildinfo ] ; then |
| | | echo *Starting upgrade... |
| | | ${deb.prefix}/./upgrade -n --acceptLicense |
| | | ${deb.prefix}/./upgrade -n --force --acceptLicense |
| | | echo |
| | | |
| | | if [ "$?" -eq 0 ] ; then |
| | |
| | | echo "Post Install - upgrade install" |
| | | # Only if the instance has been configured |
| | | if [ -e "%{_prefix}"/config/buildinfo ] && [ "$(ls -A "%{_prefix}"/config/archived-configs)" ] ; then |
| | | "%{_prefix}"/./upgrade -n --acceptLicense |
| | | "%{_prefix}"/./upgrade -n --force --acceptLicense |
| | | # If upgrade is ok, checks the server status flag for restart |
| | | if [ "$?" == "0" ] && [ -f "%{_prefix}"/logs/status ] ; then |
| | | echo "" |