This patch changes default behaviour of migration tool during package
upgrade. Previously, Cynara's state path was left untouched. Now
creation of minimal database is ensured. No changes are made if it
already existed.
Change-Id: I25158aec7d7b436ac1446d43277afe1337bfe4e5
failure
fi
- :
- # : is a null command, as functions may not be empty.
- # Actual body will be added if database structure changes.
+ # Create minimal database if there was none:
+ if [ ! -d "${STATE_PATH}/${DB_DIR}" ]; then
+ create_db
+ fi
}
remove_db() {