Skip to content

Instantly share code, notes, and snippets.

@NickMRamirez
Last active May 24, 2016 11:53
Show Gist options
  • Save NickMRamirez/a0f7697a094f06d9492545d8941f7b75 to your computer and use it in GitHub Desktop.
Save NickMRamirez/a0f7697a094f06d9492545d8941f7b75 to your computer and use it in GitHub Desktop.
Installs Bonobo Git Server
# Powershell - Installs Bonobo Git Server (assuming Bonobo files downloaded to Vagrant folder)
$bonobo_files = \\\\vboxsvr\\vagrant\\bonobo
# Install IIS feature
Install-WindowsFeature -Name Web-WebServer -IncludeAllSubFeature -IncludeManagementTools -Restart
# Copy over Bonobo files
Copy-Item $bonobo_files C:\\inetpub\\wwwroot -Recurse
# Create new Web application under Default Web Site
New-WebApplication -Name Bonobo -PhysicalPath C:\\inetpub\\wwwroot\\bonobo -Site "Default Web Site"
# Add permissions for IIS_IUSRS to App_Data
$acl = Get-Acl C:\\inetpub\\wwwroot\\bonobo\\App_Data
$rule = New-Object System.Security.Accesscontrol.FileSystemAccessRule("IIS_IUSRS","FullControl","ContainerInherit,ObjectInherit","None","Allow")
$acl.SetAccessRule($rule)
Set-Acl C:\\inetpub\\wwwroot\\bonobo\\App_Data -AclObject $acl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment