Guest User

Untitled

a guest
Jul 20th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. Clear-Host
  2.  
  3. $destination = $("C:\inetpub\wwwroot\{0}{1}" -f $hostname, $port)
  4.  
  5. Write-Host "IIS configuration"
  6. Write-Host -NoNewline "`tCreating the web application pool... " -ForegroundColor Green
  7.  
  8. CreateWebApplicationPool $hostname | HandleResult
  9.  
  10. Write-Host -NoNewline "`tCreating the IIS Site... " -ForegroundColor Green
  11.  
  12. CreateWebSite $hostname $port $destination | HandleResult
  13.  
  14. Write-Host -NoNewline "`tStopping the site... " -ForegroundColor Green
  15.  
  16. StopSite (GetSiteName $hostname $port) | HandleResult
  17.  
  18. Write-Host -NoNewline "`tStopping the application pool... " -ForegroundColor Green
  19.  
  20. StopWebApplicationPool $hostname | HandleResult
  21.  
  22. Write-Host "`nDestination folder"
  23.  
  24. Write-Host -NoNewline "`tExtracting files... " -ForegroundColor Green
  25.  
  26. ExtractSite $package $destination | HandleResult
  27.  
  28. Write-Host -NoNewline "`tSetting the permission... " -ForegroundColor Green
  29.  
  30. SetPermissions $destination $hostname | HandleResult
  31.  
  32. Write-Host -NoNewline "`tUpdating host file... " -ForegroundColor Green
  33.  
  34. EnsureHostEntry "127.0.0.1" $hostname | HandleResult
  35.  
  36. Write-Host -NoNewline "`tSarting the application pool... " -ForegroundColor Green
  37.  
  38. StartWebApplicationPool $hostname | HandleResult
  39.  
  40. Write-Host -NoNewline "`tStarting the site... " -ForegroundColor Green
  41.  
  42. StartSite (GetSiteName $hostname $port) | HandleResult
  43.  
  44. Write-Host "`nUmbraco"
  45.  
  46. Write-Host -NoNewline "`tConfiguring... " -ForegroundColor Green
  47.  
  48. ConfigureUmbraco (GetSiteUrl $hostname $port) $username $email $password $databaseType $sqlServer $databaseName $sqlUseIntegratedAuthentication $sqlUsername $sqlPassword | HandleResult
Add Comment
Please, Sign In to add comment