- Timestamp:
- Apr 11, 2015, 4:45:17 PM (10 years ago)
- Location:
- scripts/usr/local/lib/7dtd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/usr/local/lib/7dtd/VERSION
r228 r229 1 Version: 7 82 Release: 2015-04- 091 Version: 79 2 Release: 2015-04-11 3 3 DediBuild: 583520 4 4 -
scripts/usr/local/lib/7dtd/commands/updateengine.sh
r225 r229 41 41 42 42 local LOCAL=$(getLocalEngineVersion) 43 local REMOTE=$(getRemoteEngineVersion)43 #local REMOTE=$(getRemoteEngineVersion) 44 44 local LOCAL_SUPPORTED_BUILD=$(cat /usr/local/lib/7dtd/VERSION | grep "DediBuild" | cut -d\ -f2) 45 45 46 if [ "$FORCED" = "yes" -o $REMOTE -gt $LOCAL ]; then47 echo "A newer version of the engine is available."46 # if [ "$FORCED" = "yes" -o $REMOTE -gt $LOCAL ]; then 47 # echo "A newer version of the engine is available." 48 48 echo "Local buildid: $LOCAL" 49 echo "Available buildid: $REMOTE"49 #echo "Available buildid: $REMOTE" 50 50 echo 51 51 52 if [ "$LOCAL_SUPPORTED_BUILD" != "$REMOTE" ]; then53 echo "WARNING!!! The currently installed version of the scripts donot support the newer dedicated server build!"52 # if [ "$LOCAL_SUPPORTED_BUILD" != "$REMOTE" ]; then 53 echo "WARNING!!! The currently installed version of the scripts might not support the newer dedicated server build!" 54 54 echo "If you continue you might not be able to start the server." 55 echo "Please wait for an updated release of the scripts or continue at your own risk."55 # echo "Please wait for an updated release of the scripts or continue at your own risk." 56 56 echo 57 fi57 # fi 58 58 59 59 while : ; do … … 73 73 esac 74 74 done 75 76 if [ $STEAM_USER = "" ]; then 77 read -p "Steam username: " STEAM_USER 78 fi 79 80 if [ $STEAM_PASS = "" ]; then 81 read -s -p "Steam password: " STEAM_PASS 82 fi 75 83 76 84 cd $SDTD_BASE/steamcmd … … 87 95 echo 88 96 fi 89 else90 echo "Engine is already at the newest build (local: $LOCAL, remote: $REMOTE)."91 fi97 # else 98 # echo "Engine is already at the newest build (local: $LOCAL, remote: $REMOTE)." 99 # fi 92 100 } 93 101 94 102 sdtdCommandUpdateengineHelp() { 95 echo "Usage: $(basename $0) updateengine [--force | --check]"103 echo "Usage: $(basename $0) updateengine" # [--force | --check]" 96 104 echo 97 105 echo "Check for a newer version of engine (aka game) files of 7dtd. If there is a newer" 98 echo "version they canbe updated by this command."99 echo100 echo "If --force is specified you are asked if you want to redownload the engine"101 echo "even if there is no new version available."102 echo103 echo "If --check is specified it will only output the current local and remote build ids"104 echo "and if an update is available."106 echo "version they will be updated by this command." 107 # echo 108 # echo "If --force is specified you are asked if you want to redownload the engine" 109 # echo "even if there is no new version available." 110 # echo 111 # echo "If --check is specified it will only output the current local and remote build ids" 112 # echo "and if an update is available." 105 113 } 106 114 … … 110 118 111 119 sdtdCommandUpdateengineExpects() { 112 case $1 in113 2)114 echo "--force --check"115 ;;116 esac120 # case $1 in 121 # 2) 122 # echo "--force --check" 123 # ;; 124 # esac 117 125 } 118 126
Note:
See TracChangeset
for help on using the changeset viewer.