Last active
February 23, 2022 18:23
-
-
Save mrc4tt/34e7668b0da449dab6b6d0211c17f0ad to your computer and use it in GitHub Desktop.
**csgoupdate-easywi.sh for EASY-WI ONLY!**
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
last_version=$(curl -s "http://api.steampowered.com/ISteamApps/UpToDateCheck/v0001/?appid=730&version=507&format=json" \ | |
| sed 's/,/\n/g' \ | |
| grep "required_version" \ | |
| awk -F: '{print $2}') | |
echo "Latest version number: $last_version" | |
echo "Running script ..." | |
/home/USERNAMEHERE-CHANGETHIS/masterserver/steamCMD/steamcmd.sh +login anonymous +force_install_dir /home/USERNAMEHERE-CHANGETHIS/masterserver/csgo +app_update 740 +quit &> /dev/null && echo "Success" || echo "failed" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Crontab function - option:
update.sh: It will updating 03:00am.
Kill Process: will killing CSGOServers 03:05 am, easy-wi (cronjobs will automatically start gameservers again!)
Remember to EDIT: USERNAMEHERE-CHANGETHIS - change username to your /home/username/