fix startup command
makes the startup command respect seed variable
This commit is contained in:
		
							parent
							
								
									ce2d45eef4
								
							
						
					
					
						commit
						dc1dd92988
					
				@ -3,12 +3,12 @@
 | 
			
		||||
    "meta": {
 | 
			
		||||
        "version": "PTDL_v1"
 | 
			
		||||
    },
 | 
			
		||||
    "exported_at": "2020-06-29T17:53:20-04:00",
 | 
			
		||||
    "exported_at": "2020-06-29T18:44:15-04:00",
 | 
			
		||||
    "name": "Rust Autowipe",
 | 
			
		||||
    "author": "support@pterodactyl.io",
 | 
			
		||||
    "description": "The only aim in Rust is to survive. To do this you will need to overcome struggles such as hunger, thirst and cold. Build a fire. Build a shelter. Kill animals for meat. Protect yourself from other players, and kill them for meat. Create alliances with other players and form a town. Do whatever it takes to survive.",
 | 
			
		||||
    "image": "quay.io\/pterodactyl\/core:rust",
 | 
			
		||||
    "startup": "\".\/RustDedicated -batchmode +server.port {{SERVER_PORT}} +server.identity \"rust\" +rcon.port {{RCON_PORT}} +rcon.web true +server.hostname \\\"{{HOSTNAME}}\\\" +server.level \\\"{{LEVEL}}\\\" +server.description \\\"{{DESCRIPTION}}\\\" +server.url \\\"{{SERVER_URL}}\\\" +server.headerimage \\\"{{SERVER_IMG}}\\\" +server.worldsize \\\"{{WORLD_SIZE}}\\\" +server.seed \\\"$( [ -f seed.txt ] && printf %s $(cat seed.txt) || printf %s '${WORLD_SEED}' )\\\" +server.maxplayers {{MAX_PLAYERS}} +rcon.password \\\"{{RCON_PASS}}\\\" +server.saveinterval {{SAVEINTERVAL}} {{ADDITIONAL_ARGS}}\"",
 | 
			
		||||
    "startup": "\".\/RustDedicated -batchmode +server.port {{SERVER_PORT}} +server.identity \"rust\" +rcon.port {{RCON_PORT}} +rcon.web true +server.hostname \\\"{{HOSTNAME}}\\\" +server.level \\\"{{LEVEL}}\\\" +server.description \\\"{{DESCRIPTION}}\\\" +server.url \\\"{{SERVER_URL}}\\\" +server.headerimage \\\"{{SERVER_IMG}}\\\" +server.worldsize \\\"{{WORLD_SIZE}}\\\" +server.seed \\\"$( if [ -f seed.txt ] && [[ ${WORLD_SEED} == \"0\" ]]; then printf %s $(cat seed.txt); else printf %s '${WORLD_SEED}'; fi )\\\" +server.maxplayers {{MAX_PLAYERS}} +rcon.password \\\"{{RCON_PASS}}\\\" +server.saveinterval {{SAVEINTERVAL}} {{ADDITIONAL_ARGS}}\"",
 | 
			
		||||
    "config": {
 | 
			
		||||
        "files": "{}",
 | 
			
		||||
        "startup": "{\r\n    \"done\": \"Server startup complete\",\r\n    \"userInteraction\": []\r\n}",
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user