install_openmohaa.sh 857 B

1234567891011121314151617
  1. #!/bin/bash
  2. # LinuxGSM install_openmohaa.sh module
  3. # Author: Daniel Gibbs
  4. # Contributors: https://linuxgsm.com/contrib
  5. # Website: https://linuxgsm.com
  6. # Description: Installs OpenMoHAA for the Medal of Honor: Allied Assault OpenMoHAA variants.
  7. moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
  8. echo -e ""
  9. echo -e "${bold}${lightyellow}Installing OpenMoHAA${default}"
  10. fn_messages_separator
  11. fn_fetch_file "https://github.com/openmoh/openmohaa/releases/download/v0.82.1/openmohaa-v0.82.1-linux-amd64.zip" "" "" "" "${tmpdir}" "openmohaa-v0.82.1-linux-amd64.zip" "nochmodx" "norun" "noforce" "57692d057a684afb7f7e91a61fcd8c062b29ab1b639f27453830084a88cd653c"
  12. mkdir -p "${serverfiles}/openmohaa"
  13. fn_dl_extract "${tmpdir}" "openmohaa-v0.82.1-linux-amd64.zip" "${serverfiles}/openmohaa"
  14. chmod +x "${serverfiles}/openmohaa/omohaaded"
  15. fn_clear_tmp