Skip to content

Commit

Permalink
Bugfix - Wrong order of the functions executed by migration
Browse files Browse the repository at this point in the history
  • Loading branch information
lucascbeyeler committed Jul 23, 2017
1 parent 086384c commit 97fc623
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion project/lib/bash/MigrationAction.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 97fc623

Please sign in to comment.