install_ut2k4_key.sh 791 B

12345678910111213141516171819202122232425262728
  1. #!/bin/bash
  2. # LGSM install_ut2k4_key.sh function
  3. # Author: Daniel Gibbs
  4. # Website: http://gameservermanagers.com
  5. lgsm_version="271215"
  6. local modulename="Install"
  7. echo ""
  8. echo "Enter ${gamename} CD Key"
  9. echo "================================="
  10. sleep 1
  11. echo "To get your server listed on the Master Server list"
  12. echo "you must get a free CD key. Get a key here:"
  13. echo "http://www.unrealtournament.com/ut2004server/cdkey.php"
  14. echo ""
  15. if [ -z "${autoinstall}" ]; then
  16. echo "Once you have the key enter it below"
  17. echo -n "KEY: "
  18. read CODE
  19. echo ""\""CDKey"\""="\""${CODE}"\""" > "${systemdir}/cdkey"
  20. if [ -f "${systemdir}/cdkey" ]; then
  21. fn_scriptlog "UT2K4 Server CD Key created"
  22. else
  23. echo "You can add your key using the following command"
  24. echo "./${selfname} server-cd-key"
  25. fi
  26. echo ""