You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to install the precompiled minecraft server, MCServer, for raspberry pi using the following command from the user manual:
curl -s https://raw.githubusercontent.com/mc-server/MCServer/master/easyinstall.sh | sh
The easyinstall.sh script downloaded and ran but gave an error saying that the curl command had no URL specified. I found that changing "arm_" to just arm_ in the case statement in easyinstall.sh fixed it.
Original code:
...
case $PLATFORM in
"i686") DOWNLOADURL="http://builds.cuberite.org/job/MCServer%20Linux%20x86/lastSuccessfulBuild/artifact/MCServer.tar" ;;
"x86_64") DOWNLOADURL="http://builds.cuberite.org/job/MCServer%20Linux%20x64/lastSuccessfulBuild/artifact/MCServer.tar" ;;
# Assume that all arm devices are a raspi for now.
"arm*") DOWNLOADURL="http://builds.cuberite.org/job/MCServer%20Linux%20armhf/lastSuccessfulBuild/artifact/MCServer/MCServer.tar"
esac
Fixed code:
...
case $PLATFORM in
"i686") DOWNLOADURL="http://builds.cuberite.org/job/MCServer%20Linux%20x86/lastSuccessfulBuild/artifact/MCServer.tar" ;;
"x86_64") DOWNLOADURL="http://builds.cuberite.org/job/MCServer%20Linux%20x64/lastSuccessfulBuild/artifact/MCServer.tar" ;;
# Assume that all arm devices are a raspi for now.
arm*) DOWNLOADURL="http://builds.cuberite.org/job/MCServer%20Linux%20armhf/lastSuccessfulBuild/artifact/MCServer/MCServer.tar"
esac
I modified the original download command to download just the easyinstall.sh script as follows:
I was trying to install the precompiled minecraft server, MCServer, for raspberry pi using the following command from the user manual:
The easyinstall.sh script downloaded and ran but gave an error saying that the curl command had no URL specified. I found that changing "arm_" to just arm_ in the case statement in easyinstall.sh fixed it.
Original code:
Fixed code:
I modified the original download command to download just the easyinstall.sh script as follows:
I then made the above edit to easyinstall.sh, made it executable using chmod, and ran it successfully.
The text was updated successfully, but these errors were encountered: