![]() The following is a simple example wrapper script for a setup using a separate user and group for the server, and a server that is started and stopped through systemd. Should you need to stop the server, change permissions on the newly downloaded file, and start the server again afterwards, a wrapper script is recommended. This script only handles updating the server JAR file itself. To Install the required dependencies on a Debian platform perform the following commands To Install the required dependencies on CentOS 7 perform the following commands On other distributions it may be available, or may require installation from source. On CentOS 7 jq is available through the EPEL repository. The JSON parser jq is used to extract the relevant information out of the manifests. This script relies on cURL to handle downloading of Mojang manifests and the server JAR file itself. This script was written on CentOS 7 but should work for any POSIX compliant Linux distribution so long as the dependencies are available. Target installation version will default to the latest release, though any version can be specified. Default parameters can be modified within the script, or passed in as parameters. This is a detailed bash script to update a vanilla Minecraft server. ![]() This tutorial is exclusive to Java Edition.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |