|
|
@ -2,7 +2,7 @@ |
|
|
|
# LGSM fn_install_serverdir function |
|
|
|
# Author: Daniel Gibbs |
|
|
|
# Website: http://gameservermanagers.com |
|
|
|
lgsm_version="061115" |
|
|
|
lgsm_version="201215" |
|
|
|
|
|
|
|
echo "" |
|
|
|
echo "Server Directory" |
|
|
@ -13,11 +13,15 @@ echo "" |
|
|
|
if [ -d "${filesdir}" ]; then |
|
|
|
fn_printwarningnl "A server is already installed here." |
|
|
|
fi |
|
|
|
while true; do |
|
|
|
read -p "Continue [y/N]" yn |
|
|
|
case $yn in |
|
|
|
[Yy]* ) break;; |
|
|
|
[Nn]* ) exit;; |
|
|
|
* ) echo "Please answer yes or no.";; |
|
|
|
esac |
|
|
|
done |
|
|
|
if [ -z "${autoinstall}" ]; then |
|
|
|
while true; do |
|
|
|
read -p "Continue [y/N]" yn |
|
|
|
case $yn in |
|
|
|
[Yy]* ) break;; |
|
|
|
[Nn]* ) exit;; |
|
|
|
* ) echo "Please answer yes or no.";; |
|
|
|
esac |
|
|
|
done |
|
|
|
fi |
|
|
|
mkdir -v "${filesdir}" |
|
|
|
echo "" |