You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should be possible to detect earlier version of OpenESP and upgrade all software, without overwriting config.
Ideally it should be possible to upgrade Solr war and Tomcat individually.
The upgrader should be designed as part of openespctl
openespctl upgrade [options] new-openesp-x.y.zip
The upgrader will have custom logic knowing what to do between two versions. If the upgrade is skipping several versions, the upgrader should still do all necessary migrations and stuff to bring the version up to date, without losing custom config.
The text was updated successfully, but these errors were encountered:
The upgrade logic should be modularized so it really consists of a set of consecutive commands which could be run from command-line
Example
Place the needed files in OPENESP_HOME/.temp (e.g. grails.jar and openespctl.bat)
Detect whether an old version is installed, and give the choice of exit or upgrade, e.g. openespctl check isinstalled
Detect whether OpenESP is running, and tell user to stop it before continuing e.g. openespctl check isrunning
4 . Do a full backup of $OPENESP_HOME (excluding data/solr/index and .temp) e.g. openespctl backup <openesp-home> [destination-zipfile] where destination-zipfile defaults to $OPENESP_HOME/../backups/openesp-YYYYMMDDhhmmss.zip
Place openesp-x.y.zip in $OPENESP_HOME/.temp
Upgrade openesp e.g. openespctl upgrade <openesp-zipfile-location> [openesp-home] where openesp-home defaults to ".."
Upgrade service if necessary e.g. openespctl windowsservice uninstall - then install again
I would like all of this logic to be written in groovy and thus also possible to use for those who want to install manually and script upgrades.
The upgrade itself can probably be as simple as unzipping most of the zip-file, but excluding some parts. Unzipping can be done really easy from Groovy through AntBuilder: https://gist.github.com/tamirko/3237336
In $OPENESP_HOME there is now a file called version.properties. So if we later down the road needs to do some custom actions during an upgrade between two versions, the groovy script can do such choices based on the versions read from this file. The upgrade process will also upgrade this file of course.
Should be possible to detect earlier version of OpenESP and upgrade all software, without overwriting config.
Ideally it should be possible to upgrade Solr war and Tomcat individually.
The upgrader should be designed as part of openespctl
The upgrader will have custom logic knowing what to do between two versions. If the upgrade is skipping several versions, the upgrader should still do all necessary migrations and stuff to bring the version up to date, without losing custom config.
The text was updated successfully, but these errors were encountered: