TheRemote / MinecraftBedrockServer

Sets up a Minecraft Bedrock dedicated server on Ubuntu with options for automatic updates and running at startup
https://jamesachambers.com/minecraft-bedrock-edition-ubuntu-dedicated-server-guide/
MIT License
811 stars 173 forks source link

Auto upgrades to the server do not set the execute bit #78

Closed murkyl closed 3 years ago

murkyl commented 3 years ago

When upgrading to the newest package. After unpacking the files, the bedrock_server file needs to have the execute bit set. Due to the fact that the files are in a Zip, the permission bits on the files are incorrect. The simple fix is to add the following line after unzipping. Letting ${BASE_DIR}/${SERVER_NAME} be the path to the server files.

chmod u+x ${BASE_DIR}/${SERVER_NAME}/bedrock_server

TheRemote commented 3 years ago

You're quite right, I actually have a permissions line above this which is obviously not going to help!

I've added this in, thanks!