Changeset 229 for bootstrapper
- Timestamp:
- Apr 11, 2015, 4:45:17 PM (10 years ago)
- File:
-
- 1 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
Note:
See TracChangeset
for help on using the changeset viewer.