gameservergame-servergame-servershacktoberfestdedicated-game-serversgamelinuxgsmserverbashgaminglinuxmultiplayer-game-servershell
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
994 B
42 lines
994 B
#!/bin/bash
|
|
# LGSM fn_install_ut99 function
|
|
# Author: Daniel Gibbs
|
|
# Website: http://danielgibbs.co.uk
|
|
# Version: 210115
|
|
|
|
echo "Installing ${gamename} Server"
|
|
echo "================================="
|
|
sleep 1
|
|
mkdir -pv "${filesdir}"
|
|
cd "${filesdir}"
|
|
echo "Extracting ut-server-436.tar.gz"
|
|
sleep 1
|
|
tar -zxvf ut-server-436.tar.gz ut-server/ --strip-components=1
|
|
echo "Extracting UTPGPatch451.tar.bz2"
|
|
sleep 1
|
|
tar -jxvf UTPGPatch451.tar.bz2
|
|
while true; do
|
|
read -p "Was the install successful? [y/N]" yn
|
|
case $yn in
|
|
[Yy]* ) break;;
|
|
[Nn]* ) fn_install_retry;;
|
|
* ) echo "Please answer yes or no.";;
|
|
esac
|
|
done
|
|
while true; do
|
|
read -p "Remove ut-server-436.tar.gz? [y/N]" yn
|
|
case $yn in
|
|
[Yy]* ) rm -fv ut-server-436.tar.gz; break;;
|
|
[Nn]* ) break;;
|
|
* ) echo "Please answer yes or no.";;
|
|
esac
|
|
done
|
|
while true; do
|
|
read -p "Remove UTPGPatch451.tar.bz2? [y/N]" yn
|
|
case $yn in
|
|
[Yy]* ) rm -fv UTPGPatch451.tar.bz2; break;;
|
|
[Nn]* ) break;;
|
|
* ) echo "Please answer yes or no.";;
|
|
esac
|
|
done
|
|
echo ""
|