From 97fc623f8da6c096514a75e4dfb675833d1f6626 Mon Sep 17 00:00:00 2001 From: lucascbeyeler Date: Sun, 23 Jul 2017 19:50:21 -0300 Subject: [PATCH] Bugfix - Wrong order of the functions executed by migration --- project/lib/bash/MigrationAction.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/project/lib/bash/MigrationAction.sh b/project/lib/bash/MigrationAction.sh index 5e5b090..ad3d1c2 100644 --- a/project/lib/bash/MigrationAction.sh +++ b/project/lib/bash/MigrationAction.sh @@ -84,14 +84,15 @@ function importaccounts(){ # migration: Execute migration action ############################################################################### function migration(){ - create_session if [[ $SESSION_TYPE == "SQLITE3" ]] && ! [[ -f $WORKDIR/sessions.sqlite3 ]]; then echo "Starting the migration - please wait until the conclusion" + create_session importsession importaccounts echo "Migration completed" rm $WORKDIR/sessions.txt elif [[ $SESSION_TYPE == "TXT" ]] && ! [[ -f $WORKDIR/sessions.txt ]]; then + create_session rm $WORKDIR/sessions.sqlite3 else echo "Nothing to do."