mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-12-13 05:42:28 +00:00
Merge pull request #65 from jtcressy/master
[mc] resolved issues with downloading new server executable
This commit is contained in:
commit
8610e7d621
1 changed files with 5 additions and 2 deletions
|
@ -62,8 +62,11 @@ case "$TYPE" in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
rm -f $SERVER
|
#attempt https, and if it fails, fallback to http and download that way. Display error if neither works.
|
||||||
wget -q https://getspigot.org$URL
|
wget -q -N $SERVER https://getspigot.org$URL || \
|
||||||
|
(echo "Falling back to http, unable to contact server using https..." && \
|
||||||
|
wget -q -N $SERVER http://getspigot.org$URL) || \
|
||||||
|
echo "Unable to download new copy of spigot server"
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue