source: scripts/usr/local/lib/7dtd/commands/updateengine.sh@ 47

Last change on this file since 47 was 35, checked in by alloc, 10 years ago

Version 10: Native linux

File size: 1.1 KB
Line 
1#!/bin/bash
2
3# Tries to start the 7dtd instance.
4
5sdtdCommandUpdateengine() {
6 for I in $(getInstanceList); do
7 if [ $(isRunning $I) -eq 1 ]; then
8 echo "At least one instance is still running (\"$I\")."
9 echo "Before updating the engine please stop all instances!"
10 return
11 fi
12 done
13
14 if [ ! -e $SDTD_BASE/steamcmd ]; then
15 mkdir $SDTD_BASE/steamcmd
16 cd /tmp
17 wget http://media.steampowered.com/installer/steamcmd_linux.tar.gz
18 tar -xvzf steamcmd_linux.tar.gz -C $SDTD_BASE/steamcmd
19 cd $SDTD_BASE/steamcmd
20 ./steamcmd.sh +quit
21 fi
22
23 cd $SDTD_BASE/steamcmd
24
25 ./steamcmd.sh +@sSteamCmdForcePlatformType windows +login $STEAM_USER $STEAM_PASS +force_install_dir $SDTD_BASE/engine "+app_update 251570" validate +quit
26
27 cp $SDTD_BASE/linux_files/engine/* $SDTD_BASE/engine/ -R
28 cp $SDTD_BASE/engine/Install/32bit/SteamworksManaged.dll $SDTD_BASE/engine/7DaysToDie_Data/Managed/
29
30 chown $SDTD_USER.$SDTD_GROUP -R $SDTD_BASE/engine
31}
32
33sdtdCommandUpdateengineHelp() {
34 echo "Usage: $(basename $0) updateengine"
35 echo
36 echo "Update the engine (aka game) files of 7dtd."
37}
38
39sdtdCommandUpdateengineDescription() {
40 echo "Update the 7dtd engine files"
41}
Note: See TracBrowser for help on using the repository browser.