fn_updateserver 515 B

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