Skip to content
Snippets Groups Projects
Commit ebfc21a4 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

upgrade script should be placed in proper directory

parent 92b231ff
No related branches found
No related tags found
1 merge request!779Resolve "Debian package: use dbconfig-common"
...@@ -30,7 +30,8 @@ case "$1" in ...@@ -30,7 +30,8 @@ case "$1" in
#if we update the package #if we update the package
if [ -f $DB_SCRIPT_DIR/db_${OLD_VERSION}_to_${MAX_DB_VERSION_FOR_MIGRTION}.sql ]; then 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 else
log "INFO: File doesn't exist: $DB_SCRIPT_DIR/db_${OLD_VERSION}_to_${MAX_DB_VERSION_FOR_MIGRTION}.sql" log "INFO: File doesn't exist: $DB_SCRIPT_DIR/db_${OLD_VERSION}_to_${MAX_DB_VERSION_FOR_MIGRTION}.sql"
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment