Skip to content

Commit

Permalink
Fixed consistency in deploy script (refs #73)
Browse files Browse the repository at this point in the history
  • Loading branch information
Timo Smit committed Feb 13, 2018
1 parent ddb2c6f commit 8ef2d13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deploy.sh
Expand Up @@ -114,7 +114,7 @@ install_pk3() {

install_db() {
echo -n 'initializing database...';
sqlite3 $fs_homepath/$fs_homedir/$fs_game/wolfadmin.db < database/new/sqlite3.sql;
sqlite3 $fs_homepath/$fs_homedir/$fs_game/wolfadmin.db < database/new/sqlite.sql;
echo 'done.'
}

Expand Down Expand Up @@ -166,10 +166,10 @@ update() {
if [ ! -x "$(command -v sqlite3)" ]; then
echo 'sqlite3 executable does not exist, cannot update database'
elif [[ ! -e $fs_homepath/$fs_homedir/$fs_game/wolfadmin.db ]]; then
echo 'wolfadmin.db does not exist, cannot create tables'
echo 'wolfadmin.db does not exist, cannot update database'
else
echo -n 'updating database...'
sqlite3 $fs_homepath/$fs_homedir/$fs_game/wolfadmin.db < database/update/$prev_version/sqlite3.sql
sqlite3 $fs_homepath/$fs_homedir/$fs_game/wolfadmin.db < database/update/$prev_version/sqlite.sql
echo 'done.'
fi

Expand Down

0 comments on commit 8ef2d13

Please sign in to comment.