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.
29 lines
580 B
29 lines
580 B
#!/bin/bash
|
|
# LGSM fn_install_serverdir function
|
|
# Author: Daniel Gibbs
|
|
# Website: http://gameservermanagers.com
|
|
lgsm_version="201215"
|
|
|
|
echo ""
|
|
echo "Server Directory"
|
|
echo "================================="
|
|
echo ""
|
|
pwd
|
|
echo ""
|
|
if [ -d "${filesdir}" ]; then
|
|
fn_printwarningnl "A server is already installed here."
|
|
fi
|
|
if [ -z "${autoinstall}" ]; then
|
|
while true; do
|
|
read -e -i "y" -p "Continue [y/N]" yn
|
|
case $yn in
|
|
[Yy]* ) break;;
|
|
[Nn]* ) exit;;
|
|
* ) echo "Please answer yes or no.";;
|
|
esac
|
|
done
|
|
fi
|
|
if [ ! -d "${filesdir}" ]; then
|
|
mkdir -v "${filesdir}"
|
|
fi
|
|
sleep 1
|