Changeset 229


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

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • bootstrapper/bootstrap.sh

    r204 r229  
    11#!/bin/bash
    2 VERSION=5
     2VERSION=6
    33
    44if [ `id -u` -ne 0 ]; then
     
    185185setSteamLoginData() {
    186186        echo -e "Steam account data\n"
    187         echo "Please enter your Steam login data for SteamCMD to get the 7dtd-server files:"
    188         read -p "Steam username: " username
    189         read -s -p "Steam password: " password
    190         sed -i "s/export STEAM_USER=/export STEAM_USER=$username/" /etc/7dtd.conf
    191         sed -i "s/export STEAM_PASS=/export STEAM_PASS=$password/" /etc/7dtd.conf
    192         echo -e "\n=============================================================\n\n"
     187        echo -e "Steam account login data is required for SteamCMD to get the 7dtd-server files.\n"
     188        echo -e "Store account login data in /etc/7dtd.conf which will be only readable by root?"
     189        echo -e "If you select to NOT store the data you will have to enter it each time you want"
     190        echo -e "to update the server files.\n"
     191        while : ; do
     192                local STOREDATA
     193                read -p "Store data in /etc/7dtd.conf? (yn) " STOREDATA
     194                case $STOREDATA in
     195                        y)
     196                                read -p "Steam username: " username
     197                                read -s -p "Steam password: " password
     198                                sed -i "s/export STEAM_USER=/export STEAM_USER=$username/" /etc/7dtd.conf
     199                                sed -i "s/export STEAM_PASS=/export STEAM_PASS=$password/" /etc/7dtd.conf
     200                                echo -e "\n=============================================================\n\n"
     201                                break
     202                                ;;
     203                        n)
     204                                break
     205                                ;;
     206                        *)
     207                                echo "Wrong input"
     208                esac
     209        done
    193210}
    194211
  • 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.