This commit is contained in:
parent
05779ea0d6
commit
386ed3ead2
1 changed files with 1 additions and 2 deletions
|
@ -192,8 +192,7 @@ install_db() {
|
||||||
if [ $(mysql --user="$DB_USER" --password="$DB_PASS"$EXTRA --execute='show databases;' | grep ^$DB_NAME$) ]
|
if [ $(mysql --user="$DB_USER" --password="$DB_PASS"$EXTRA --execute='show databases;' | grep ^$DB_NAME$) ]
|
||||||
then
|
then
|
||||||
echo "Reinstalling will delete the existing test database ($DB_NAME)"
|
echo "Reinstalling will delete the existing test database ($DB_NAME)"
|
||||||
read -p 'Are you sure you want to proceed? [y/N]: ' DELETE_EXISTING_DB
|
recreate_db yes
|
||||||
recreate_db $DELETE_EXISTING_DB
|
|
||||||
else
|
else
|
||||||
create_db
|
create_db
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue