source: scripts/usr/local/bin/7dtd-update.sh@ 9

Last change on this file since 9 was 9, checked in by alloc, 11 years ago

Fix #1, #2, #3, #5; Refs #4, #6: WD works for save path, not for some logs

  • Property svn:executable set to *
File size: 985 bytes
Line 
1#!/bin/bash
2. /usr/local/bin/7dtd-common.sh
3checkRootLoadConf
4
5for I in $SDTD_BASE/instances/*; do
6 ins=`basename $I`
7 run=$(isRunning $ins)
8 if [ $run -eq 1 ]; then
9 echo "At least one instance is still running."
10 echo "Before updating the engine please stop all instances!"
11 exit 1
12 fi
13done
14
15if [ ! -e $STEAMCMD_ROOT ]; then
16 mkdir $STEAMCMD_ROOT
17 cd /tmp
18 wget http://media.steampowered.com/installer/steamcmd_linux.tar.gz
19 tar -xvzf steamcmd_linux.tar.gz -C $STEAMCMD_ROOT
20 cd $STEAMCMD_ROOT
21 ./steamcmd.sh +quit
22fi
23
24cd $STEAMCMD_ROOT
25
26./steamcmd.sh +@sSteamCmdForcePlatformType windows +login $STEAM_USER $STEAM_PASS +force_install_dir $SDTD_ROOT "+app_update 251570" validate +quit
27chown $SDTD_USER.$SDTD_GROUP -R $SDTD_ROOT
28
29cp $SDTD_ROOT/Install/32bit/7DaysToDie.exe $SDTD_ROOT/
30cp $SDTD_ROOT/Install/32bit/mono.dll $SDTD_ROOT/7DaysToDie_Data/Mono/
31cp $SDTD_ROOT/Install/32bit/SteamworksManaged.dll $SDTD_ROOT/7DaysToDie_Data/Managed/
32cp $SDTD_BASE/msvcr100.dll $SDTD_ROOT/
Note: See TracBrowser for help on using the repository browser.