mirror of
https://github.com/etlegacy/wolfadmin.git
synced 2024-11-25 13:41:21 +00:00
Fixed consistency in deploy script (refs #73)
This commit is contained in:
parent
ddb2c6fc21
commit
8ef2d13015
1 changed files with 3 additions and 3 deletions
|
@ -114,7 +114,7 @@ install_pk3() {
|
||||||
|
|
||||||
install_db() {
|
install_db() {
|
||||||
echo -n 'initializing database...';
|
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.'
|
echo 'done.'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -166,10 +166,10 @@ update() {
|
||||||
if [ ! -x "$(command -v sqlite3)" ]; then
|
if [ ! -x "$(command -v sqlite3)" ]; then
|
||||||
echo 'sqlite3 executable does not exist, cannot update database'
|
echo 'sqlite3 executable does not exist, cannot update database'
|
||||||
elif [[ ! -e $fs_homepath/$fs_homedir/$fs_game/wolfadmin.db ]]; then
|
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
|
else
|
||||||
echo -n 'updating database...'
|
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.'
|
echo 'done.'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue