Quantcast
Channel: AutoSPInstaller
Viewing all articles
Browse latest Browse all 2279

Commented Task: Why test on "*localhost*" after globally update all instances of "localhost" in the input file to actual local server name? [20748]

$
0
0
Hi,

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*")
```
or
```
If ($url -like "*localhost*")
```
I think that those If statements are superfluously.
Or am I missing something?

Regards,
Andre
Comments: ** Comment from web user: brianlala **

Good catch, I will investigate and clean this up as required.

Brian


Viewing all articles
Browse latest Browse all 2279

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>