Changeset 257 for bootstrapper
- Timestamp:
- Feb 16, 2016, 8:34:20 PM (9 years ago)
- File:
-
- 1 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
Note:
See TracChangeset
for help on using the changeset viewer.