Changeset 1344
- Timestamp:
- Nov 1, 2009, 10:10:58 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/locker-dev/locker/deploy/bin/onathena
r1224 r1344 158 158 fi 159 159 160 if [ "$prompt_username" = "" ]; then161 admin_username="admin"162 prompt_username=0163 fi164 if [ "$prompt_password" = "" ]; then165 prompt_password=1166 fi167 168 if [ "$prompt_username" -eq 1 ]; then169 echo170 echo "You will be able to log in to $sname using a username of your choice."171 echo "Please decide upon a username and enter it below."172 echo "Your username must contain only alphanumeric characters (a-z, 0-9)."173 printf "Desired username: "174 read admin_username175 admin_username=`perl -0e 'print $ARGV[0] =~ /^([[:alnum:]]+)$/' -- "$admin_username"`176 if [ "$admin_username" = "" ]; then177 echo178 echo ERROR:179 echo "Your username must contain only alphanumeric characters (a-z, 0-9)."180 echo "You will need to run the installer again and choose a different username."181 exit 1182 fi183 fi184 185 160 origdir=`pwd` 186 161 mkdir -p "$lroot/web_scripts_tmp" … … 198 173 fs sa . system:scripts-security-upd write 199 174 200 if [ "$prompt_password" -eq 1 ]; then201 stty -echo202 sshrun "deploy$scriptsdev/bin/prompt-password" "$sname" "$deploy" "$addrend" "$admin_username"203 stty echo204 fi205 206 echo207 echo "Unpacking $sname... (this step might take several minutes)"208 209 175 # This version is deprecated, use create_scripts_dir instead 210 176 … … 235 201 fi 236 202 203 if [ "$wizard" != "" ]; then 204 vsshrun "wizard/bin/wizard" "install" "$wizard" "$lroot/web_scripts/$addrend" 205 exit 0 206 fi 207 208 if [ "$prompt_username" = "" ]; then 209 admin_username="admin" 210 prompt_username=0 211 fi 212 if [ "$prompt_password" = "" ]; then 213 prompt_password=1 214 fi 215 216 if [ "$prompt_username" -eq 1 ]; then 217 echo 218 echo "You will be able to log in to $sname using a username of your choice." 219 echo "Please decide upon a username and enter it below." 220 echo "Your username must contain only alphanumeric characters (a-z, 0-9)." 221 printf "Desired username: " 222 read admin_username 223 admin_username=`perl -0e 'print $ARGV[0] =~ /^([[:alnum:]]+)$/' -- "$admin_username"` 224 if [ "$admin_username" = "" ]; then 225 echo 226 echo ERROR: 227 echo "Your username must contain only alphanumeric characters (a-z, 0-9)." 228 echo "You will need to run the installer again and choose a different username." 229 exit 1 230 fi 231 fi 232 233 if [ "$prompt_password" -eq 1 ]; then 234 stty -echo 235 sshrun "deploy$scriptsdev/bin/prompt-password" "$sname" "$deploy" "$addrend" "$admin_username" 236 stty echo 237 fi 238 237 239 cd "$origdir" 240 241 echo 242 echo "Unpacking $sname... (this step might take several minutes)" 238 243 239 244 vsshrun "deploy$scriptsdev/bin/$deploy" "$lname" "$sname" "$deploy" "$addrend" "$admin_username" "$requires_sql" "$scriptsdev" "$USER" || die "Unknown failure during configuration"
Note: See TracChangeset
for help on using the changeset viewer.