Changeset 9 for scripts/usr/local/bin/7dtd-update.sh
- Timestamp:
- May 15, 2014, 8:38:37 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/usr/local/bin/7dtd-update.sh
r1 r9 1 1 #!/bin/bash 2 . /etc/7dtd.conf 2 . /usr/local/bin/7dtd-common.sh 3 checkRootLoadConf 4 5 for 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 13 done 3 14 4 15 if [ ! -e $STEAMCMD_ROOT ]; then … … 13 24 cd $STEAMCMD_ROOT 14 25 15 ./steamcmd.sh +@sSteamCmdForcePlatformType windows +login $STEAM_USER $STEAM_PASS +force_install_dir $SDTD_ROOT +app_update 251570validate +quit26 ./steamcmd.sh +@sSteamCmdForcePlatformType windows +login $STEAM_USER $STEAM_PASS +force_install_dir $SDTD_ROOT "+app_update 251570" validate +quit 16 27 chown $SDTD_USER.$SDTD_GROUP -R $SDTD_ROOT 17 28 … … 19 30 cp $SDTD_ROOT/Install/32bit/mono.dll $SDTD_ROOT/7DaysToDie_Data/Mono/ 20 31 cp $SDTD_ROOT/Install/32bit/SteamworksManaged.dll $SDTD_ROOT/7DaysToDie_Data/Managed/ 21 cp $SDTD_ ROOT/../msvcr100.dll $SDTD_ROOT/32 cp $SDTD_BASE/msvcr100.dll $SDTD_ROOT/
Note:
See TracChangeset
for help on using the changeset viewer.