fn_update_dl 546 B

123456789101112131415161718192021
  1. #!/bin/bash
  2. # LGSM fn_update_dl function
  3. # Author: Daniel Gibbs
  4. # Website: http://danielgibbs.co.uk
  5. # Version: 210115
  6. # Description: Runs a server update.
  7. local modulename="Update"
  8. fn_check_root
  9. fn_check_systemdir
  10. fn_details_config
  11. fn_printdots "Updating ${servername}"
  12. sleep 1
  13. fn_check_steamcmd
  14. fn_printoknl "Updating ${servername}"
  15. fn_scriptlog "Updating ${servername}"
  16. sleep 1
  17. cd "${rootdir}"
  18. cd "steamcmd"
  19. ./steamcmd.sh +login "${steamuser}" "${steampass}" +force_install_dir "${filesdir}" +app_update "${appid}" +quit|tee -a "${scriptlog}"