From ebfc21a429e7b947e8043775375f3b5818116b0a Mon Sep 17 00:00:00 2001 From: Piotr Gawron <piotr.gawron@uni.lu> Date: Mon, 20 May 2019 20:26:38 +0200 Subject: [PATCH] upgrade script should be placed in proper directory --- debian/template/postinst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/debian/template/postinst b/debian/template/postinst index 72addae049..d155447042 100644 --- a/debian/template/postinst +++ b/debian/template/postinst @@ -30,7 +30,8 @@ case "$1" in #if we update the package if [ -f $DB_SCRIPT_DIR/db_${OLD_VERSION}_to_${MAX_DB_VERSION_FOR_MIGRTION}.sql ]; then - cp $DB_SCRIPT_DIR/db_${OLD_VERSION}_to_${MAX_DB_VERSION_FOR_MIGRTION}.sql /usr/share/dbconfig-common/data/minerva/install/pgsql + mkdir -p /usr/share/dbconfig-common/data/minerva/upgrade/pgsql/ + cp $DB_SCRIPT_DIR/db_${OLD_VERSION}_to_${MAX_DB_VERSION_FOR_MIGRTION}.sql /usr/share/dbconfig-common/data/minerva/upgrade/pgsql/$CURRENT_VERSION else log "INFO: File doesn't exist: $DB_SCRIPT_DIR/db_${OLD_VERSION}_to_${MAX_DB_VERSION_FOR_MIGRTION}.sql" fi -- GitLab