More updates

This commit is contained in:
Raven Scott
2022-07-06 12:06:45 -05:00
parent 23e4721c1d
commit e5b935aede
12 changed files with 112 additions and 49 deletions

View File

@ -11,7 +11,7 @@ echo "Sleeping for 30 seconds, please close this process if you do not wish to c
sleep 30
wget -q -O - https://ssh.surf/notify | bash
wget -q -O /usr/bin/notif https://ssh.surf/alma-x64/notif && chmod +x /usr/bin/notif
notif "Welcome to the MineCraft Server installer for Discord-Linux, the installation is starting and will complete in 45 seconds"
useradd mc
mkdir -vp /home/mc
@ -45,7 +45,7 @@ echo "Grabbing a port from your container from our API"
port=$(curl -s https://findport.ssh.surf/?id=$hostname)
sleep 10
echo "Setting port in our config"
sed -i "s/25565/${port}/g" /home/mc/server.properties
sed -i "s/25565/25565/g" /home/mc/server.properties
sed -i "s/max-players=20/max-players=4/g" /home/mc/server.properties
sed -i "s/A Minecraft Server/An MC Server running on Discord-Linux/g" /home/mc/server.properties