„scripts/start-server.sh“ ändern

This commit is contained in:
2021-01-17 09:10:29 +01:00
parent 92b4b95d2f
commit b7587386f0

View File

@@ -102,7 +102,7 @@ if [ ! -f ${SERVER_DIR}/ShooterGame/ServerGrid.ServerOnly.json ]; then
fi
else
if [ ! "$(grep '"Name": "TradeDB",' ${SERVER_DIR}/ShooterGame/ServerGrid.ServerOnly.json)" ]; then
sed '/\"DatabaseConnections\": \[/a\ {\n \"Name\": \"TradeDB\",\n \"URL\": \"127.0.0.1\",\n \"Port"\: 6379,\n \"Password\": \"foobared\"\n },' ${SERVER_DIR}/ShooterGame/ServerGrid.ServerOnly.json
sed -i '/\"DatabaseConnections\": \[/a\ {\n \"Name\": \"TradeDB\",\n \"URL\": \"127.0.0.1\",\n \"Port"\: 6379,\n \"Password\": \"foobared\"\n },' ${SERVER_DIR}/ShooterGame/ServerGrid.ServerOnly.json
fi
echo "---'ServerGrid.ServerOnly.json' found!---"
fi