install_ut2k4_key.sh 802 B

1234567891011121314151617181920212223242526272829
  1. #!/bin/bash
  2. # LGSM install_ut2k4_key.sh function
  3. # Author: Daniel Gibbs
  4. # Website: https://gameservermanagers.com
  5. lgsm_version="210516"
  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 "https://forums.unrealtournament.com/utserver/cdkey.php?2004"
  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_script_log "UT2K4 Server CD Key created"
  22. fi
  23. else
  24. echo "You can add your key using the following command"
  25. echo "./${selfname} server-cd-key"
  26. fi
  27. echo ""