OPENDJ-929 Package Upgrade: license should be automatically accepted
Added --acceptLicense to upgrade's command line in packages (RPM / Deb)
| | |
| | | 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. |
| | |
| | | // 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); |