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