Last active
September 17, 2017 21:24
-
-
Save jasonwbarnett/c43db76c27cb6640727b4d6b44dfb531 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
bash <(curl -Ss https://my-netdata.io/kickstart-static64.sh) --dont-wait | |
apt-get update | |
apt-get install -y vim lsof default-jdk screen | |
[[ -d "/opt/minecraft" ]] || mkdir -p /opt/minecraft | |
wget -O /opt/minecraft/minecraft_server.jar "https://s3.amazonaws.com/Minecraft.Download/versions/1.12.1/minecraft_server.1.12.1.jar" | |
echo "eula=true" > /opt/minecraft/eula.txt | |
getent passwd minecraft || useradd --home /opt/minecraft --create-home --system --shell /sbin/nologin minecraft | |
chown -R minecraft: /opt/minecraft | |
#su -s /bin/bash -c 'java -Xmx1024M -Xms1024M -jar /opt/minecraft/minecraft_server.jar nogui &' minecraft |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment