Skip to content

Commit

Permalink
Newer steamcmd requires force_install_dir before login command (#137)
Browse files Browse the repository at this point in the history
* fixes #1  Newer steamcmd requires force_install_dir before login command
Changed the order of the commands

* fixes #1 Newer steamcmd requires force_install_dir before login command
- update docker_start.sh too
  • Loading branch information
leiflundgren authored May 29, 2023
1 parent 81bafb0 commit 4445143
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion admin-interface/docroot/views/steamcmd-tool.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<div class="p-2 col-2">Command</div>
<div class="p-2 horizontal-expand">
<textarea id="steamcmd_input" class="form-control monospace-font" id="exampleTextarea" rows="8">
+login anonymous
+force_install_dir "<%= @server_root_dir %>"
+login anonymous
+app_update 581330 validate
+exit
</textarea>
Expand Down
2 changes: 1 addition & 1 deletion admin-interface/lib/server-updater.rb
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ def run_steamcmd(command, buffer: nil, ignore_status: false, ignore_message: fal
def update_server(buffer=nil, validate: nil, ignore_status: true, ignore_message: true)
log 'Updating server', level: :info
command = [
'+login anonymous',
"+force_install_dir \"#{@server_root_dir}\"",
'+login anonymous',
"+app_update 581330#{' validate' if validate}",
'+exit'
]
Expand Down
4 changes: 2 additions & 2 deletions docker_start.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env bash

# Install the server if not already installed
# Install the server if not already installed
if [[ ! -d sandstorm-server/Insurgency ]]
then
steamcmd/installation/steamcmd.sh +login anonymous +force_install_dir /home/sandstorm/sandstorm-server +app_update 581330 +quit
steamcmd/installation/steamcmd.sh +force_install_dir +login anonymous /home/sandstorm/sandstorm-server +app_update 581330 +quit
fi

# Start normally
Expand Down

0 comments on commit 4445143

Please sign in to comment.