Skip to content

Instantly share code, notes, and snippets.

@aburok
Created May 30, 2018 12:10
Show Gist options
  • Save aburok/0050f7f93a3710fde42d95b167578fc2 to your computer and use it in GitHub Desktop.
Save aburok/0050f7f93a3710fde42d95b167578fc2 to your computer and use it in GitHub Desktop.
Umbraco Powershell copy license files
# $configPrefixes = @( "web", "connectionStrings", "ExamineSettings" )
$licenses = @( "umbracoCourierExpress.lic", "umbracoForms.lic")
$licenses | ForEach-Object {
Write-Output "Copying license files configuration transform file: $($_.FullName)"
Copy-Item ".\Licenses\$_" -Destination ".\bin" -Verbose
}
$licenses | ForEach-Object {
if(Test-Path ".\bin\$_" -PathType Leaf){
Write-Output "File $_ exsists in bin."
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment