#!/bin/bash
mkdir -p /mnt/server
cd /mnt/server
DOWNLOAD_URL="https://cdn.classicube.net/client/mcg/release/MCGalaxy.zip"
echo -e "Downloading MCGalaxy from ${DOWNLOAD_URL}..."
curl -ssL -o mcgalaxy.zip "${DOWNLOAD_URL}"
if [ $? -ne 0 ]; then
echo "Failed to download the file. Exiting."
exit 1
fi
echo "Extracting MCGalaxy..."
unzip -j mcgalaxy.zip
rm mcgalaxy.zip
chmod +x *.dll *.exe
echo "-----------------------------------------"
echo "Installation completed..."
echo "-----------------------------------------"