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
639 B
29 lines
639 B
#!/bin/bash
|
|
# LGSM install_server_dir.sh function
|
|
# Author: Daniel Gibbs
|
|
# Website: https://gameservermanagers.com
|
|
# Description: Creates the server directory.
|
|
|
|
local commandname="INSTALL"
|
|
local commandaction="Install"
|
|
local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
|
|
|
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
|
|
if ! fn_prompt_yn "Continue?" Y; then
|
|
exit
|
|
fi
|
|
fi
|
|
if [ ! -d "${filesdir}" ]; then
|
|
mkdir -v "${filesdir}"
|
|
fi
|
|
sleep 1
|
|
|