소스 검색

Added timestamp check to wget to reduce bandwidth.

root 7 년 전
부모
커밋
d2883dd63f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      entrypoint.sh

+ 1 - 1
entrypoint.sh

@@ -8,7 +8,7 @@ if [ -z "$MINECRAFT_VERSION" ]; then
 fi
 fi
 
 
 # Download Minecraft client .jar (Contains textures used by Minecraft Overviewer)
 # Download Minecraft client .jar (Contains textures used by Minecraft Overviewer)
-wget https://s3.amazonaws.com/Minecraft.Download/versions/${MINECRAFT_VERSION}/${MINECRAFT_VERSION}.jar -P /home/minecraft/.minecraft/versions/${MINECRAFT_VERSION}/
+wget -N https://s3.amazonaws.com/Minecraft.Download/versions/${MINECRAFT_VERSION}/${MINECRAFT_VERSION}.jar -P /home/minecraft/.minecraft/versions/${MINECRAFT_VERSION}/
 
 
 # Run the world renders (One pass to make map, one to generate points of interests)
 # Run the world renders (One pass to make map, one to generate points of interests)
 overviewer.py --config /home/minecraft/config.py
 overviewer.py --config /home/minecraft/config.py