Changeset 248 for scripts/usr/local/lib/7dtd/commands/updateengine.sh
- Timestamp:
- Jul 26, 2015, 5:20:54 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/usr/local/lib/7dtd/commands/updateengine.sh
r239 r248 4 4 5 5 sdtdCommandUpdateengine() { 6 local FORCED=no 7 local CHECKONLY=no 8 if [ "$1" = "--force" ]; then 9 FORCED=yes 10 fi 6 # local FORCED=no 7 # if [ "$1" = "--force" ]; then 8 # FORCED=yes 9 # fi 11 10 12 11 if [ ! -e $SDTD_BASE/steamcmd ]; then … … 19 18 fi 20 19 21 if [ "$1" = "--check" -o "$2" = "--check" ]; then22 local LOCAL=$(getLocalEngineVersion)23 local REMOTE=$(getRemoteEngineVersion)24 if [ $REMOTE -gt $LOCAL ]; then25 echo "Newer engine version available."26 else27 echo "Engine up to date."28 fi29 echo "Local buildid: $LOCAL"30 echo "Available buildid: $REMOTE"31 return32 fi20 # if [ "$1" = "--check" -o "$2" = "--check" ]; then 21 # local LOCAL=$(getLocalEngineVersion) 22 # local REMOTE=$(getRemoteEngineVersion) 23 # if [ $REMOTE -gt $LOCAL ]; then 24 # echo "Newer engine version available." 25 # else 26 # echo "Engine up to date." 27 # fi 28 # echo "Local buildid: $LOCAL" 29 # echo "Available buildid: $REMOTE" 30 # return 31 # fi 33 32 34 33 for I in $(getInstanceList); do … … 42 41 local LOCAL=$(getLocalEngineVersion) 43 42 #local REMOTE=$(getRemoteEngineVersion) 44 local LOCAL_SUPPORTED_BUILD=$(cat /usr/local/lib/7dtd/VERSION | grep "DediBuild" | cut -d\ -f2)43 #local LOCAL_SUPPORTED_BUILD=$(cat /usr/local/lib/7dtd/VERSION | grep "DediBuild" | cut -d\ -f2) 45 44 46 45 # if [ "$FORCED" = "yes" -o $REMOTE -gt $LOCAL ]; then … … 51 50 52 51 # 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 echo "If you continue you might not be able to start the server."52 # echo "WARNING!!! The currently installed version of the scripts might not support the newer dedicated server build!" 53 # echo "If you continue you might not be able to start the server." 55 54 # echo "Please wait for an updated release of the scripts or continue at your own risk." 56 echo55 # echo 57 56 # fi 58 57 … … 85 84 ./steamcmd.sh +login $STEAM_USER $STEAM_PASS +force_install_dir $SDTD_BASE/engine +app_update 294420 validate +quit 86 85 86 if [ -d /usr/local/lib/7dtd/server-fixes ]; then 87 87 cp /usr/local/lib/7dtd/server-fixes/* $SDTD_BASE/engine/ -R 88 fi 88 89 89 90 chown $SDTD_USER.$SDTD_GROUP -R $SDTD_BASE/engine 90 91 91 if [ "$LOCAL_SUPPORTED_BUILD" != "$REMOTE" ]; then92 echo93 echo "Also update the scripts as soon as there is a new release for this dedicated server build."94 echo95 fi92 # if [ "$LOCAL_SUPPORTED_BUILD" != "$REMOTE" ]; then 93 # echo 94 # echo "Also update the scripts as soon as there is a new release for this dedicated server build." 95 # echo 96 # fi 96 97 # else 97 98 # echo "Engine is already at the newest build (local: $LOCAL, remote: $REMOTE)."
Note:
See TracChangeset
for help on using the changeset viewer.