Last active
July 8, 2021 02:00
-
-
Save paul-schwendenman/9fb515ffad4903be247ce03f178cec4e to your computer and use it in GitHub Desktop.
MSM setup on Digitial Ocean
This file contains 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
#!/usr/bin/env bash | |
# Install and setup the minecraft server | |
# Install java | |
apt install -qq -y openjdk-16-jdk-headless openjdk-16-jre-headless | |
# Create mountpoint | |
mkdir -p /mnt/volume_nyc1_02/msm | |
# Install MSM | |
wget -q https://raw.githubusercontent.com/paul-schwendenman/msm/master/installers/debian.sh -O /tmp/msm | |
cat << EOF | shasum -a256 -c - | |
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 /tmp/msm | |
EOF | |
bash /tmp/msm << EOF | |
/mnt/volume_nyc1_02/msm | |
minecraft | |
y | |
y | |
y | |
y | |
EOF | |
# Add mount instructions for virtual HDD | |
echo '/dev/disk/by-id/scsi-0DO_Volume_volume-nyc1-02 /mnt/volume_nyc1_02 ext4 defaults,nofail,discard 0 0' | tee -a /etc/fstab | |
# Mount virtual HDD | |
mount -a | |
# Start the server | |
msm explore start | |
msm explore status |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment