Changeset 229
- Timestamp:
- Apr 11, 2015, 4:45:17 PM (10 years ago)
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
bootstrapper/bootstrap.sh
r204 r229 1 1 #!/bin/bash 2 VERSION= 52 VERSION=6 3 3 4 4 if [ `id -u` -ne 0 ]; then … … 185 185 setSteamLoginData() { 186 186 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 193 210 } 194 211 -
scripts/usr/local/lib/7dtd/VERSION
r228 r229 1 Version: 7 82 Release: 2015-04- 091 Version: 79 2 Release: 2015-04-11 3 3 DediBuild: 583520 4 4 -
scripts/usr/local/lib/7dtd/commands/updateengine.sh
r225 r229 41 41 42 42 local LOCAL=$(getLocalEngineVersion) 43 local REMOTE=$(getRemoteEngineVersion)43 #local REMOTE=$(getRemoteEngineVersion) 44 44 local LOCAL_SUPPORTED_BUILD=$(cat /usr/local/lib/7dtd/VERSION | grep "DediBuild" | cut -d\ -f2) 45 45 46 if [ "$FORCED" = "yes" -o $REMOTE -gt $LOCAL ]; then47 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." 48 48 echo "Local buildid: $LOCAL" 49 echo "Available buildid: $REMOTE"49 #echo "Available buildid: $REMOTE" 50 50 echo 51 51 52 if [ "$LOCAL_SUPPORTED_BUILD" != "$REMOTE" ]; then53 echo "WARNING!!! The currently installed version of the scripts donot 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!" 54 54 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." 56 56 echo 57 fi57 # fi 58 58 59 59 while : ; do … … 73 73 esac 74 74 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 75 83 76 84 cd $SDTD_BASE/steamcmd … … 87 95 echo 88 96 fi 89 else90 echo "Engine is already at the newest build (local: $LOCAL, remote: $REMOTE)."91 fi97 # else 98 # echo "Engine is already at the newest build (local: $LOCAL, remote: $REMOTE)." 99 # fi 92 100 } 93 101 94 102 sdtdCommandUpdateengineHelp() { 95 echo "Usage: $(basename $0) updateengine [--force | --check]"103 echo "Usage: $(basename $0) updateengine" # [--force | --check]" 96 104 echo 97 105 echo "Check for a newer version of engine (aka game) files of 7dtd. If there is a newer" 98 echo "version they canbe updated by this command."99 echo100 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 echo103 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." 105 113 } 106 114 … … 110 118 111 119 sdtdCommandUpdateengineExpects() { 112 case $1 in113 2)114 echo "--force --check"115 ;;116 esac120 # case $1 in 121 # 2) 122 # echo "--force --check" 123 # ;; 124 # esac 117 125 } 118 126
Note:
See TracChangeset
for help on using the changeset viewer.