Changeset 257


Ignore:
Timestamp:
Feb 16, 2016, 8:34:20 PM (9 years ago)
Author:
alloc
Message:

Scripts: Removed Steam login

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • bootstrapper/bootstrap.sh

    r229 r257  
    183183}
    184184
    185 setSteamLoginData() {
    186         echo -e "Steam account data\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
    210 }
    211 
    212185installSteamCmdAndSDTD() {
    213186        echo -e "Installing SteamCMD and 7DtD\n"
     
    269242        setupUser
    270243        installManagementScripts
    271         setSteamLoginData
    272244        installSteamCmdAndSDTD
    273245        if [ $ADDCRONJOBS -eq 1 ]; then
  • scripts/etc/7dtd.conf

    r170 r257  
    11#!/bin/sh
    2 
    3 # User login info for Steam to download/update the engine
    4 export STEAM_USER=
    5 export STEAM_PASS=
    62
    73# Root of the 7dtd folders, containing e.g. the "engine", "instances" folders
  • scripts/usr/local/lib/7dtd/VERSION

    r248 r257  
    1 Version: 94
    2 Release: 2015-07-26
     1Version: 95
     2Release: 2016-02-16
    33
  • scripts/usr/local/lib/7dtd/commands/updateengine.sh

    r248 r257  
    7373                done
    7474               
    75                 if [ $STEAM_USER = "" ]; then
    76                         read -p "Steam username: " STEAM_USER
    77                 fi
    78 
    79                 if [ $STEAM_PASS = "" ]; then
    80                         read -s -p "Steam password: " STEAM_PASS
    81                 fi
    82 
    8375                cd $SDTD_BASE/steamcmd
    84                 ./steamcmd.sh +login $STEAM_USER $STEAM_PASS +force_install_dir $SDTD_BASE/engine +app_update 294420 validate +quit
     76                ./steamcmd.sh +login anonymous +force_install_dir $SDTD_BASE/engine +app_update 294420 validate +quit
    8577
    8678                if [ -d /usr/local/lib/7dtd/server-fixes ]; then
    87                 cp /usr/local/lib/7dtd/server-fixes/* $SDTD_BASE/engine/ -R
     79                        cp /usr/local/lib/7dtd/server-fixes/* $SDTD_BASE/engine/ -R
    8880                fi
    8981
Note: See TracChangeset for help on using the changeset viewer.