fn_updateserver 504 B

12345678910111213141516171819
  1. #!/bin/bash
  2. # LGSM fn_updateserver function
  3. # Author: Daniel Gibbs
  4. # Website: http://danielgibbs.co.uk
  5. # Version: 010115
  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_printok "Updating ${servername}"
  13. fn_scriptlog "Updating ${servername}"
  14. sleep 1
  15. cd "${rootdir}"
  16. cd "steamcmd"
  17. ./steamcmd.sh +login "${steamuser}" "${steampass}" +force_install_dir "${filesdir}" +app_update "${appid}" +quit|tee -a "${scriptlog}"