mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Gaetan Boismal
16.05.2015 96c360b7818d32d2ce04be37329e97834d5ed62c
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.
2 files modified
4 ■■■■ changed files
opendj-packages/opendj-deb/resources/control/postinst 2 ●●● patch | view | raw | blame | history
opendj-packages/opendj-rpm/resources/specs/postinstall.sh 2 ●●● patch | view | raw | blame | history
opendj-packages/opendj-deb/resources/control/postinst
@@ -39,7 +39,7 @@
    # 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
opendj-packages/opendj-rpm/resources/specs/postinstall.sh
@@ -43,7 +43,7 @@
    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 ""