#!/bin/ash
# Forge Installation Script
#
# Server Files: /mnt/server
cd /mnt/server
curl -sS https://servers.technicpack.net/Technic/servers/tekkit/Tekkit_Server_$MODPACK_VERSION.zip -o Tekkit_Server_$MODPACK_VERSION.zip
unzip Tekkit_Server_$MODPACK_VERSION.zip
rm -rf Tekkit_Server_$MODPACK_VERSION.zip
rm launch.bat
rm launch.sh
if [ ! -f server.properties ]; then
echo -e "Downloading MC server.properties"
curl -o server.properties https://raw.githubusercontent.com/ptero-eggs/game-eggs/main/minecraft/java/server.properties
fi
## install end
echo "-----------------------------------------"
echo "Installation completed..."
echo "-----------------------------------------"