lgsm local mirror
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.
 
 

32 lines
618 B

#!/bin/bash
# LGSM install_serverdir.sh function
# Author: Daniel Gibbs
# Website: https://gameservermanagers.com
lgsm_version="210516"
local modulename="Install"
echo ""
echo "Server Directory"
echo "================================="
sleep 1
echo ""
pwd
echo ""
if [ -d "${filesdir}" ]; then
fn_print_warning_nl "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