„scripts/start-server.sh“ ändern
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user