„scripts/start-server.sh“ ändern

This commit is contained in:
2019-05-30 16:30:13 +02:00
parent f4b446b95f
commit 7f9b18df0b

View File

@@ -85,7 +85,8 @@ INJECTED="$(mysql -u "steam" -p"exile" -e "USE 'exile'; SHOW TABLES;" | grep 'ac
if [ "$INJECTED" = "" ] ; then
echo "---Database not connected, connecting...---"
mysql -u "steam" -p"exile" -e "SOURCE $SERVER_DIR/data/MySQL/exile.sql"
if [ "$INJECTED" == "account" ] ; then
INJECTED="$(mysql -u "steam" -p"exile" -e "USE 'exile'; SHOW TABLES;" | grep 'account')"
if [ "$INJECTED" = "account" ] ; then
echo "---Database successfully connected!---"
else
echo "---Something went wrong, could not connect database!---"