From ddb475fa2e75ebe4c1c61094e5066ecbebdbf417 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sat, 27 Feb 2016 15:49:15 +0000 Subject: [PATCH] Added auto-install mode --- functions/install_ut2k4_key.sh | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/functions/install_ut2k4_key.sh b/functions/install_ut2k4_key.sh index 35a9599f6..34dcab124 100644 --- a/functions/install_ut2k4_key.sh +++ b/functions/install_ut2k4_key.sh @@ -4,6 +4,7 @@ # Website: http://gameservermanagers.com lgsm_version="271215" + echo "" echo "Enter ${gamename} CD Key" echo "=================================" @@ -12,8 +13,14 @@ echo "To get your server listed on the Master Server list" echo "you must get a free CD key. Get a key here:" echo "http://www.unrealtournament.com/ut2004server/cdkey.php" echo "" -echo "Once you have the key enter it below" -echo -n "KEY: " -read CODE -echo ""\""CDKey"\""="\""${CODE}"\""" > "${systemdir}/cdkey" +if [ -z "${autoinstall}" ]; then + echo "Once you have the key enter it below" + echo -n "KEY: " + read CODE + echo ""\""CDKey"\""="\""${CODE}"\""" > "${systemdir}/cdkey" + +else + echo "You can add your key using the following command" + echo "./${selfname} server-cd-key" +fi echo "" \ No newline at end of file