mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2025-01-09 12:37:33 +08:00
e0b77391bc
* refactor: remove unnecessary comments in default server configurations The commit removes unnecessary comments from the default server configurations. The comments were providing instructions to edit the configuration files with care, but they are not needed and can be safely removed. * refactor: update server names in default configuration files - Updated the servername value in multiple default configuration files to "LinuxGSM" for consistency. - Refactored the code to reflect the changes made. * refactor: rename fn_script_log_fatal to fn_script_log_faail to create more consistency with naming * feat: improve console output formatting - Added separator function to improve readability of console output. - Replaced multiple instances of manual separators with the new function. - Updated commit message to follow conventional commit standard. * refactor: remove unnecessary fn_sleep_time calls This commit removes the fn_sleep_time function calls that are no longer needed in multiple modules. The fn_sleep_time function was used to introduce a delay, but it is no longer necessary for the current implementation. * better standardise random * removed bold where not required
30 lines
960 B
Bash
30 lines
960 B
Bash
#!/bin/bash
|
|
# LinuxGSM install_ut2k4_key.sh module
|
|
# Author: Daniel Gibbs
|
|
# Contributors: http://linuxgsm.com/contrib
|
|
# Website: https://linuxgsm.com
|
|
# Description: Activates ut2k4 server with given key.
|
|
|
|
moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
|
|
|
|
echo -e ""
|
|
echo -e "${bold}${lightyellow}Enter ${gamename} CD Key${default}"
|
|
fn_messages_separator
|
|
echo -e "To get your server listed on the Master Server list"
|
|
echo -e "you must get a free CD key. Get a key here:"
|
|
echo -e "https://www.epicgames.com/unrealtournament/forums/cdkey.php?2004"
|
|
echo -e ""
|
|
if [ -z "${autoinstall}" ]; then
|
|
echo -e "Once you have the key enter it below"
|
|
echo -n "KEY: "
|
|
read -r CODE
|
|
echo -e ""\""CDKey"\""="\""${CODE}"\""" > "${systemdir}/cdkey"
|
|
if [ -f "${systemdir}/cdkey" ]; then
|
|
fn_script_log_info "UT2K4 Server CD Key created"
|
|
fi
|
|
else
|
|
echo -e "You can add your key using the following command"
|
|
echo -e "./${selfname} server-cd-key"
|
|
fi
|
|
echo -e ""
|