Automatically upgrade the database in a post-install script and create a backup
As discussed in the team meeting last week, for some users it makes sense to automatically upgrade the database (because osmo-hlr will refuse to start if the db was not upgraded but a new version is required) and for others it does not (just want to try out a osmo-hlr version, but be able to go back to the previous version).The solution we arrived at:
- post-install script, which checks if the database needs to be upgraded (exit 0 otherwise)
- create a backup of the database
- upgrade the database
It was discussed to do it in a pre-install instead of post-install, but that's not possible as the migration tool is only available at post-install.