The upgrade procedure should not invoke oq_create_db

Bug #1359090 reported by Michele Simionato
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenQuake Engine
Fix Released
High
Michele Simionato

Bug Description

Currently packager.sh invokes the script oq_create_db. This is fine on a system without a database called 'openquake2', i.e. on Jenkins. However the packager must be changed to check for the existence of the database 'openquake2'. In such case (the normal case for package upgrades) it should skip the call to oq_create_db.

Changed in oq-engine:
assignee: nobody → Matteo Nastasi (nastasi-oq)
importance: Undecided → High
milestone: none → 1.0.1
Revision history for this message
Michele Simionato (michele-simionato) wrote :

oq_create_db has been changed to create the db only if it does not exist already.The packager does not need to create the db, because it has been already created by the postinst script.

Implemented in https://github.com/gem/oq-engine/pull/1490

Changed in oq-engine:
assignee: Matteo Nastasi (nastasi-oq) → Michele Simionato (michele-simionato)
status: New → Fix Committed
Changed in oq-engine:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.