install_ut2k4_key.sh 880 B

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