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.
27 lines
633 B
27 lines
633 B
#!/bin/bash
|
|
# LinuxGSM install_server_dir.sh function
|
|
# Author: Daniel Gibbs
|
|
# Website: https://linuxgsm.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 "================================="
|
|
fn_sleep_time
|
|
if [ -d "${serverfiles}" ]; then
|
|
fn_print_warning_nl "A server is already installed here."
|
|
fi
|
|
pwd
|
|
echo ""
|
|
if [ -z "${autoinstall}" ]; then
|
|
if ! fn_prompt_yn "Continue?" Y; then
|
|
exit
|
|
fi
|
|
fi
|
|
if [ ! -d "${serverfiles}" ]; then
|
|
mkdir -v "${serverfiles}"
|
|
fi
|