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

Violette Roche-Montane
28.43.2013 fb2f4c907286d354b5b1cfab495ae67a4b887c6e
OPENDJ-929 Package Upgrade: license should be automatically accepted
Added --acceptLicense to upgrade's command line in packages (RPM / Deb)
2 files modified
4 ■■■■ changed files
opends/resource/debian/control/postinst 2 ●●● patch | view | raw | blame | history
opends/src/build-tools/org/opends/build/tools/GenerateRpm.java 2 ●●● patch | view | raw | blame | history
opends/resource/debian/control/postinst
@@ -11,7 +11,7 @@
  if [ -f @prefix@/config/buildinfo ]
  then
    echo *Starting upgrade...
    @prefix@/./upgrade -n
    @prefix@/./upgrade -n --acceptLicense
    echo
# Upgrade fails - Requires mandatory user interaction.
# Nevertheless, exits successfully of the pkg process.
opends/src/build-tools/org/opends/build/tools/GenerateRpm.java
@@ -302,7 +302,7 @@
      // Starts the upgrade. The new files are automatically imported
      // by rpm manager, which compares files between last & actual version.
      // Copies / deletes files depending of new package.
      sb.append("        %{_prefix}/./upgrade -n" + EOL);
      sb.append("        %{_prefix}/./upgrade -n --acceptLicense" + EOL);
      sb.append("# Upgrade ok " + EOL);
      sb.append("        if [ \"$?\" == \"0\" ] ; then " + EOL);
      sb.append("# Checks the server status flag for restart. " + EOL);