Fixed screen name
Screen command now uses $server var
This commit is contained in:
		
							parent
							
								
									095113beca
								
							
						
					
					
						commit
						39101cab23
					
				
					 1 changed files with 6 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -95,8 +95,8 @@ if [ -f "$VERSION_FILE" ]; then
 | 
			
		|||
	#mod updater
 | 
			
		||||
	#default mods, most servers will use this mod dir
 | 
			
		||||
	#servers w/ special mods will need a new line under here and a new dir created for them.
 | 
			
		||||
	/usr/bin/python3 /home/factorio/mod_updater.py -s /home/factorio/servers/Master/server-settings.json -m /home/factorio/mods/default --token 2674c79ebc4236ff57d9fb9e04c29 --username clash --fact-path /home/factorio/factorio/bin/x64/factorio --update
 | 
			
		||||
	#/usr/bin/python3 /home/factorio/mod_updater.py -s /home/factorio/servers/Master/server-settings.json -m /home/factorio/mods/dad --token 2674c79ebc4236ff57d9fb9e04c29 --username clash --fact-path /home/factorio/factorio/bin/x64/factorio --update
 | 
			
		||||
	/usr/bin/python3 /home/factorio/mod_updater.py -s /home/factorio/servers/Master/server-settings.json -m /home/factorio/mods/default --token 2674c79ebc4fb9e04c29 --username clash --fact-path /home/factorio/factorio/bin/x64/factorio --update
 | 
			
		||||
	#/usr/bin/python3 /home/factorio/mod_updater.py -s /home/factorio/servers/Master/server-settings.json -m /home/factorio/mods/dad --token 2674fb9e04c29 --username clash --fact-path /home/factorio/factorio/bin/x64/factorio --update
 | 
			
		||||
 | 
			
		||||
    else
 | 
			
		||||
        echo "Factorio is already up-to-date. No need to download an update."
 | 
			
		||||
| 
						 | 
				
			
			@ -166,7 +166,7 @@ server='test'
 | 
			
		|||
port='34198'
 | 
			
		||||
start="/home/$game/factorio/bin/x64/factorio --start-server-load-latest --server-settings /home/factorio/servers/$server/server-settings.json --config /home/factorio/servers/$server/config.ini --executable-path /home/factorio/factorio/bin/x64/ --mod-directory /home/factorio/mods/default/ --port $port"
 | 
			
		||||
echo "Starting test Server"
 | 
			
		||||
/usr/bin/screen -dmS test $start
 | 
			
		||||
/usr/bin/screen -dmS $server $start
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#RIBBON SERVER
 | 
			
		||||
| 
						 | 
				
			
			@ -174,7 +174,7 @@ server='ribbon'
 | 
			
		|||
port='34196'
 | 
			
		||||
start="/home/$game/factorio/bin/x64/factorio --start-server-load-latest --server-settings /home/factorio/servers/$server/server-settings.json --config /home/factorio/servers/$server/config.ini --executable-path /home/factorio/factorio/bin/x64/ --mod-directory /home/factorio/mods/default/ --port $port"
 | 
			
		||||
#echo "Starting ribbon Server"
 | 
			
		||||
#/usr/bin/screen -dmS ribbon $start
 | 
			
		||||
#/usr/bin/screen -dmS $server $start
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#FAMILY SERVER
 | 
			
		||||
| 
						 | 
				
			
			@ -182,7 +182,7 @@ server='family'
 | 
			
		|||
port='34197'
 | 
			
		||||
start="/home/$game/factorio/bin/x64/factorio --start-server-load-latest --server-settings /home/factorio/servers/$server/server-settings.json --config /home/factorio/servers/$server/config.ini --executable-path /home/factorio/factorio/bin/x64/ --mod-directory /home/factorio/mods/default/ --port $port"
 | 
			
		||||
echo "Starting family Server"
 | 
			
		||||
/usr/bin/screen -dmS family $start
 | 
			
		||||
/usr/bin/screen -dmS $server $start
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#PRIVATE SERVER
 | 
			
		||||
| 
						 | 
				
			
			@ -190,7 +190,7 @@ server='private'
 | 
			
		|||
port='34199'
 | 
			
		||||
start="/home/$game/factorio/bin/x64/factorio --start-server-load-latest --server-settings /home/factorio/servers/$server/server-settings.json --config /home/factorio/servers/$server/config.ini --executable-path /home/factorio/factorio/bin/x64/ --mod-directory /home/factorio/mods/default/ --port $port"
 | 
			
		||||
echo "Starting private Server"
 | 
			
		||||
/usr/bin/screen -dmS private $start
 | 
			
		||||
/usr/bin/screen -dmS $server $start
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
echo "=============================="
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue