„scripts/start-server.sh“ ändern

This commit is contained in:
2019-05-30 15:16:09 +02:00
parent ff1943c648
commit c1f0a701a3

View File

@@ -82,7 +82,7 @@ fi
echo "---Checking if 'exile' database is connected correctly---" echo "---Checking if 'exile' database is connected correctly---"
INJECTED="$(mysql -u "steam" -p"exile" -e "USE 'exile'; SHOW TABLES;" | grep 'account')" INJECTED="$(mysql -u "steam" -p"exile" -e "USE 'exile'; SHOW TABLES;" | grep 'account')"
if [ "$INJECTED" == "" ] ; then if [ "$INJECTED" = "" ] ; then
echo "---Database not connected, connecting...---" echo "---Database not connected, connecting...---"
mysql -u "steam" -p"exile" -e "SOURCE $SERVER_DIR/data/MySQL/exile.sql" mysql -u "steam" -p"exile" -e "SOURCE $SERVER_DIR/data/MySQL/exile.sql"
if [ "$INJECTED" == "account" ] ; then if [ "$INJECTED" == "account" ] ; then
@@ -92,7 +92,7 @@ if [ "$INJECTED" == "" ] ; then
sleep infinity sleep infinity
fi fi
fi fi
if [ "$INJECTED" == "account" ] ; then if [ "$INJECTED" = "account" ] ; then
echo "---Database setup correct!---" echo "---Database setup correct!---"
fi fi