Changeset 229 for scripts


Ignore:
Timestamp:
Apr 11, 2015, 4:45:17 PM (10 years ago)
Author:
alloc
Message:

Scripts 79: Do not require to store Steam account data

Location:
scripts/usr/local/lib/7dtd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • scripts/usr/local/lib/7dtd/VERSION

    r228 r229  
    1 Version: 78
    2 Release: 2015-04-09
     1Version: 79
     2Release: 2015-04-11
    33DediBuild: 583520
    44
  • scripts/usr/local/lib/7dtd/commands/updateengine.sh

    r225 r229  
    4141
    4242        local LOCAL=$(getLocalEngineVersion)
    43         local REMOTE=$(getRemoteEngineVersion)
     43        #local REMOTE=$(getRemoteEngineVersion)
    4444        local LOCAL_SUPPORTED_BUILD=$(cat /usr/local/lib/7dtd/VERSION | grep "DediBuild" | cut -d\  -f2)
    4545
    46         if [ "$FORCED" = "yes" -o $REMOTE -gt $LOCAL ]; then
    47                 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."
    4848                echo "Local buildid:     $LOCAL"
    49                 echo "Available buildid: $REMOTE"
     49                #echo "Available buildid: $REMOTE"
    5050                echo
    5151
    52                 if [ "$LOCAL_SUPPORTED_BUILD" != "$REMOTE" ]; then
    53                         echo "WARNING!!! The currently installed version of the scripts do not 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!"
    5454                        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."
    5656                        echo
    57                 fi
     57#               fi
    5858       
    5959                while : ; do
     
    7373                        esac
    7474                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
    7583
    7684                cd $SDTD_BASE/steamcmd
     
    8795                        echo
    8896                fi
    89         else
    90                 echo "Engine is already at the newest build (local: $LOCAL, remote: $REMOTE)."
    91         fi
     97#       else
     98#               echo "Engine is already at the newest build (local: $LOCAL, remote: $REMOTE)."
     99#       fi
    92100}
    93101
    94102sdtdCommandUpdateengineHelp() {
    95         echo "Usage: $(basename $0) updateengine [--force | --check]"
     103        echo "Usage: $(basename $0) updateengine" # [--force | --check]"
    96104        echo
    97105        echo "Check for a newer version of engine (aka game) files of 7dtd. If there is a newer"
    98         echo "version they can be updated by this command."
    99         echo
    100         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         echo
    103         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."
    105113}
    106114
     
    110118
    111119sdtdCommandUpdateengineExpects() {
    112         case $1 in
    113                 2)
    114                         echo "--force --check"
    115                         ;;
    116         esac
     120#       case $1 in
     121#               2)
     122#                       echo "--force --check"
     123#                       ;;
     124#       esac
    117125}
    118126
Note: See TracChangeset for help on using the changeset viewer.