Jump to content

How can I update the server on steamcmd ?


Recommended Posts

so if I use the anonymous user, it would be something like this ... :

 

 

screen -X -S DST quit && steamcmd +login anonymous +force_install_dir /home/steam/steamapps/DST

+app_update 343050 +exit && cd /home/steam/steamapps/DST/bin/ && screen -S "DST Server" ./dontstarve_dedicated_server_nullrenderer

 

am I right ?

Link to comment
Share on other sites

I did a small script that you can add to your cron job.

first create the file :

nano /home/steam/steamcmd/update.sh

then paste this using SHIFT+INSERT

#!/bin/shecho "Killing DST session(s) ..."screen -ls | grep DST | cut -d. -f1 | awk '{print $1}' | xargs killecho "Session killed, will now update DST..."cd /home/steam/steamcmd/ && ./steamcmd.sh +@ShutdownOnFailedCommand 1 +@NoPromptForPassword 1 +login anonymous +force_install_dir /home/steam/steamapps/DST +app_update 343050 validate +quitecho "Update completed, will now start the server..."cd /home/steam/steamapps/DST/bin/ && screen -dmS "DST Server" ./dontstarve_dedicated_server_nullrenderer -threaded_physics -threaded_renderecho "Server successfully started!" 
then CTRL-O + CTRL+X to save & quit.
 
 
 
I have set the script to run at midnight everyday... if someone have a better idea to update the game as soon an update is released, please share :)
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...