Changeset 257
- Timestamp:
- Feb 16, 2016, 8:34:20 PM (9 years ago)
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
bootstrapper/bootstrap.sh
r229 r257 183 183 } 184 184 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 : ; do192 local STOREDATA193 read -p "Store data in /etc/7dtd.conf? (yn) " STOREDATA194 case $STOREDATA in195 y)196 read -p "Steam username: " username197 read -s -p "Steam password: " password198 sed -i "s/export STEAM_USER=/export STEAM_USER=$username/" /etc/7dtd.conf199 sed -i "s/export STEAM_PASS=/export STEAM_PASS=$password/" /etc/7dtd.conf200 echo -e "\n=============================================================\n\n"201 break202 ;;203 n)204 break205 ;;206 *)207 echo "Wrong input"208 esac209 done210 }211 212 185 installSteamCmdAndSDTD() { 213 186 echo -e "Installing SteamCMD and 7DtD\n" … … 269 242 setupUser 270 243 installManagementScripts 271 setSteamLoginData272 244 installSteamCmdAndSDTD 273 245 if [ $ADDCRONJOBS -eq 1 ]; then -
scripts/etc/7dtd.conf
r170 r257 1 1 #!/bin/sh 2 3 # User login info for Steam to download/update the engine4 export STEAM_USER=5 export STEAM_PASS=6 2 7 3 # Root of the 7dtd folders, containing e.g. the "engine", "instances" folders -
scripts/usr/local/lib/7dtd/VERSION
r248 r257 1 Version: 9 42 Release: 201 5-07-261 Version: 95 2 Release: 2016-02-16 3 3 -
scripts/usr/local/lib/7dtd/commands/updateengine.sh
r248 r257 73 73 done 74 74 75 if [ $STEAM_USER = "" ]; then76 read -p "Steam username: " STEAM_USER77 fi78 79 if [ $STEAM_PASS = "" ]; then80 read -s -p "Steam password: " STEAM_PASS81 fi82 83 75 cd $SDTD_BASE/steamcmd 84 ./steamcmd.sh +login $STEAM_USER $STEAM_PASS+force_install_dir $SDTD_BASE/engine +app_update 294420 validate +quit76 ./steamcmd.sh +login anonymous +force_install_dir $SDTD_BASE/engine +app_update 294420 validate +quit 85 77 86 78 if [ -d /usr/local/lib/7dtd/server-fixes ]; then 87 cp /usr/local/lib/7dtd/server-fixes/* $SDTD_BASE/engine/ -R79 cp /usr/local/lib/7dtd/server-fixes/* $SDTD_BASE/engine/ -R 88 80 fi 89 81
Note:
See TracChangeset
for help on using the changeset viewer.