1
1
I have a Steam based game server, Unturned for GNU-Linux. I have to update it manually running a /home/steam/update.sh
script.
update.sh
downloads the latest version of the game server and the service is restarted.
What I tried
I made a cronjob to run update.sh
everyday at 9pm (they usually update at 7,8 or 9pm in that time). But it's not a nice solution because someday they would be updating at 9:15 and the server could be offline for a day.
0 21 * * * /home/steam/update.sh > /dev/null 2>&1
What I want
I figured out that particularly for this game, after every update they post a changelog and Steam provides a RSS link. http://steamcommunity.com/games/304930/rss/
Is there any way to run my update.sh
every time they update the RSS?
Is there any way to check if the server is updated?
Thank you in advance.
Did you write the
update.sh
yourself? Depending on it you could just include some logic to decide whenever files changed and restart only if they did? If you get an archive you could keep the the latest version and compare it against the latest download. – Seth – 2017-01-24T08:54:34.650