install_modules.sh 807 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. # LinuxGSM install_modules.sh module
  3. # Author: Daniel Gibbs
  4. # Contributors: http://linuxgsm.com/contrib
  5. # Website: https://linuxgsm.com
  6. # Description: Downloads all modules on install.
  7. functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
  8. echo -e ""
  9. echo -e "${lightyellow}Downloading LinuxGSM Modules${default}"
  10. echo -e "================================="
  11. fn_fetch_file "https://github.com/GameServerManagers/LinuxGSM/archive/master.tar.gz" "${tmpdir}" "master.tar.gz" "nochmodx" "norun" "noforce" "nohash"
  12. fn_dl_extract "${tmpdir}" "master.tar.gz" "${tmpdir}"
  13. cp "${tmpdir}/LinuxGSM-master/lgsm/functions"/*.sh "${functionsdir}"
  14. cp "${tmpdir}/LinuxGSM-master/lgsm/functions"/*.py "${functionsdir}"
  15. chmod +x "${functionsdir}"/*
  16. command_update_linuxgsm.sh
  17. fn_firstcommand_reset