This project has moved and is read-only. For the latest updates, please go here.

Why test on "*localhost*" after globally update all instances of "localhost" in the input file to actual local server name?

Topics: General Questions
Feb 17, 2014 at 6:08 PM

The AutoSPInstallerMain script starts with a line (line10) to replace all the instances of "localhost". In this statement every occurence of "localhost" is replaced (even in the comments).
[xml]$xmlinput = (Get-Content $inputFile) -replace ("localhost", $env:COMPUTERNAME)
Why are there various places in the scipt which test on localhost, like:
If ($dbPrefix -like "*localhost*")
If ($url -like "*localhost*")
I think that those If statements are superfluously.
Or am I missing something?

Feb 21, 2014 at 3:17 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.