Cunning fox Posted February 19, 2019 Share Posted February 19, 2019 Hello! I have a Linux-hosted server, and every time I start the server dedicated_server_mods_setup becomes blank again, so I'm unable to download mods. Is there any way to fix it? Thanks for your advice! Link to comment Share on other sites More sharing options...
Daniel86268 Posted February 19, 2019 Share Posted February 19, 2019 You can check out my guide on how to set up mods on a dedicated server, where I explained this issue: On 13.10.2018 at 7:59 PM, Daniel86268 said: Addition: On some occasions the dedicated_server_mods_setup.lua file get's overwritten by the launch script with the empty original script, if it's configured to first check if there are any server updates. If that's happening for you as well, you have to check your startup script for a line like this: ./steamcmd.sh +force_install_dir "$install_dir" +login anonymous +app_update 343050 validate +quit Just delete or uncomment it for the time being, but keep in mind that you need to either manually enter it every time the server updates, or readd it once after each update. Link to comment Share on other sites More sharing options...
Lucidi0us Posted March 3, 2019 Share Posted March 3, 2019 Quote from a similar thread 43 minutes ago, Lucidi0us said: I solved this by creating a script for updating the app that includes something like this: #!/bin/bash # Stop DST servers /bin/systemctl stop dontstarve.service; # Copy current dedicated_server_mods_setup.lua to backup /bin/cat /home/steam/dontstarve/mods/dedicated_server_mods_setup.lua > /home/steam/backup_dedicated_server_mods_setup.lua; # Update DST /home/steam/steamcmd +force_install_dir "$install_dir" +login anonymous +app_update 343050 validate +quit; # Restore dedicated_server_mods_setup.lua from backup /bin/cat /home/steam/backup_dedicated_server_mods_setup.lua > /home/steam/dontstarve/mods/dedicated_server_mods_setup.lua; # Start DST servers /bin/systemctl start dontstarve.service; # Leave happy exit 0; You can then run it in a chron job You can find the systemd and start scripts here: Here is the crontab entry to run updates at 3 am every Monday 0 3 * * 1 /usr/local/bin/dontstarve_update > /dev/null 2>&1 – make sure to chmod +x the script to allow execution chmod +x /usr/local/bin/dontstarve_update Link to comment Share on other sites More sharing options...
Recommended Posts
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.