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.
31 lines
782 B
31 lines
782 B
#!/bin/bash
|
|
# LinuxGSM install_server_dir.sh module
|
|
# Author: Daniel Gibbs
|
|
# Contributors: https://linuxgsm.com/contrib
|
|
# Website: https://linuxgsm.com
|
|
# Description: Creates the server directory.
|
|
|
|
moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
|
|
|
|
echo -e ""
|
|
echo -e "${bold}${lightyellow}Server Directory${default}"
|
|
fn_messages_separator
|
|
echo -en "creating serverfiles directory [ ${italic}${serverfiles}${default} ]"
|
|
|
|
if [ -d "${serverfiles}" ]; then
|
|
fn_print_skip_eol_nl
|
|
echo -e ""
|
|
echo -e "${italic}A game server is already exists at this location.${default}"
|
|
else
|
|
fn_print_ok_eol_nl
|
|
fi
|
|
|
|
if [ -z "${autoinstall}" ]; then
|
|
if ! fn_prompt_yn "Continue?" Y; then
|
|
exitcode=0
|
|
core_exit.sh
|
|
fi
|
|
fi
|
|
if [ ! -d "${serverfiles}" ]; then
|
|
mkdir "${serverfiles}"
|
|
fi
|
|
|