Ignore:
Timestamp:
Jul 26, 2015, 5:20:54 PM (9 years ago)
Author:
alloc
Message:

Scripts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/usr/local/lib/7dtd/commands/updateengine.sh

    r239 r248  
    44
    55sdtdCommandUpdateengine() {
    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
    1110
    1211        if [ ! -e $SDTD_BASE/steamcmd ]; then
     
    1918        fi
    2019
    21         if [ "$1" = "--check" -o "$2" = "--check" ]; then
    22                 local LOCAL=$(getLocalEngineVersion)
    23                 local REMOTE=$(getRemoteEngineVersion)
    24                 if [ $REMOTE -gt $LOCAL ]; then
    25                         echo "Newer engine version available."
    26                 else
    27                         echo "Engine up to date."
    28                 fi
    29                 echo "Local buildid:     $LOCAL"
    30                 echo "Available buildid: $REMOTE"
    31                 return
    32         fi
     20#       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
    3332
    3433        for I in $(getInstanceList); do
     
    4241        local LOCAL=$(getLocalEngineVersion)
    4342        #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)
    4544
    4645#       if [ "$FORCED" = "yes" -o $REMOTE -gt $LOCAL ]; then
     
    5150
    5251#               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."
    5554#                       echo "Please wait for an updated release of the scripts or continue at your own risk."
    56                         echo
     55#                       echo
    5756#               fi
    5857       
     
    8584                ./steamcmd.sh +login $STEAM_USER $STEAM_PASS +force_install_dir $SDTD_BASE/engine +app_update 294420 validate +quit
    8685
     86                if [ -d /usr/local/lib/7dtd/server-fixes ]; then
    8787                cp /usr/local/lib/7dtd/server-fixes/* $SDTD_BASE/engine/ -R
     88                fi
    8889
    8990                chown $SDTD_USER.$SDTD_GROUP -R $SDTD_BASE/engine
    9091
    91                 if [ "$LOCAL_SUPPORTED_BUILD" != "$REMOTE" ]; then
    92                         echo
    93                         echo "Also update the scripts as soon as there is a new release for this dedicated server build."
    94                         echo
    95                 fi
     92#               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
    9697#       else
    9798#               echo "Engine is already at the newest build (local: $LOCAL, remote: $REMOTE)."
Note: See TracChangeset for help on using the changeset viewer.