Browse Source

github configs now can download form another repo

pull/575/head
Daniel Gibbs 9 years ago
parent
commit
7bbdb82955
  1. 22
      functions/fn_install_serverdir

22
functions/fn_install_serverdir

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