From 3e8e796d0fd0e0d1b3ca22b51f27b666ee00c349 Mon Sep 17 00:00:00 2001 From: Marwolf Date: Wed, 8 Aug 2018 10:46:31 -0400 Subject: [PATCH] Added automatic import of openrsc_config.sql before server start --- Run_Production_Linux_Game_Server.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Run_Production_Linux_Game_Server.sh b/Run_Production_Linux_Game_Server.sh index c923592..c76124a 100755 --- a/Run_Production_Linux_Game_Server.sh +++ b/Run_Production_Linux_Game_Server.sh @@ -17,6 +17,11 @@ echo "" echo "" # Run the game server in a detached screen +echo "Importing fresh openrsc_config.sql database." +echo "" +sudo docker exec -i $(sudo docker-compose ps -q mysqldb) mysql -u"root" -p"root" < Game/Databases/openrsc_config.sql 2>/dev/null +echo "" +echo "" echo "Launching the game server in a new screen." echo "" echo "Type 'screen -r' to access the game server screen."