mirror of
				https://github.com/factoriotools/factorio-docker.git
				synced 2025-10-31 08:58:08 +01:00 
			
		
		
		
	make scripts executable
This commit is contained in:
		| @@ -41,6 +41,6 @@ EXPOSE $PORT/udp $RCON_PORT/tcp | ||||
|  | ||||
| COPY files/ / | ||||
|  | ||||
| USER $USER | ||||
| #USER $USER | ||||
|  | ||||
| ENTRYPOINT ["/docker-entrypoint.sh"] | ||||
|   | ||||
							
								
								
									
										8
									
								
								0.17/files/docker-entrypoint.sh
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										8
									
								
								0.17/files/docker-entrypoint.sh
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							| @@ -3,6 +3,8 @@ set -e | ||||
|  | ||||
| id | ||||
|  | ||||
| FACTORIO_VOL=/factorio | ||||
| mkdir -p $FACTORIO_VOL | ||||
| mkdir -p $SAVES | ||||
| mkdir -p $CONFIG | ||||
| mkdir -p $MODS | ||||
| @@ -36,7 +38,11 @@ if ! find -L $SAVES -iname \*.zip -mindepth 1 -print | grep -q .; then | ||||
|     --map-settings $CONFIG/map-settings.json | ||||
| fi | ||||
|  | ||||
| exec /opt/factorio/bin/x64/factorio \ | ||||
| if [ "$(id -u)" = '0' ]; then | ||||
|   chown -R factorio:factorio $FACTORIO_VOL | ||||
| fi | ||||
|  | ||||
| exec gosu factorio /opt/factorio/bin/x64/factorio \ | ||||
|   --port $PORT \ | ||||
|   --start-server-load-latest \ | ||||
|   --server-settings $CONFIG/server-settings.json \ | ||||
|   | ||||
							
								
								
									
										0
									
								
								0.17/files/scenario.sh
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										0
									
								
								0.17/files/scenario.sh
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
								
								
									
										0
									
								
								0.17/files/scenario2map.sh
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										0
									
								
								0.17/files/scenario2map.sh
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
		Reference in New Issue
	
	Block a user