Skip to content

Commit bf15c82

Browse files
Merge pull request Sitecore#63 from marcelgruber/patch-1
Update init.ps1 to store encoded values as string literals in env to …
2 parents 6288f68 + 76e13af commit bf15c82

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

getting-started/init.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ Set-EnvFileVariable "SITECORE_ADMIN_PASSWORD" -Value $SitecoreAdminPassword
5757
Set-EnvFileVariable "SQL_SA_PASSWORD" -Value $SqlSaPassword
5858

5959
# TELERIK_ENCRYPTION_KEY = random 64-128 chars
60-
Set-EnvFileVariable "TELERIK_ENCRYPTION_KEY" -Value (Get-SitecoreRandomString 128)
60+
Set-EnvFileVariable "TELERIK_ENCRYPTION_KEY" -Value "'$(Get-SitecoreRandomString 128)'"
6161

6262
# MEDIA_REQUEST_PROTECTION_SHARED_SECRET
63-
Set-EnvFileVariable "MEDIA_REQUEST_PROTECTION_SHARED_SECRET" -Value (Get-SitecoreRandomString 64)
63+
Set-EnvFileVariable "MEDIA_REQUEST_PROTECTION_SHARED_SECRET" -Value "'$(Get-SitecoreRandomString 64)'"
6464

6565
# SITECORE_IDSECRET = random 64 chars
6666
Set-EnvFileVariable "SITECORE_IDSECRET" -Value (Get-SitecoreRandomString 64 -DisallowSpecial)
@@ -114,4 +114,4 @@ Write-Host "Adding Windows hosts file entries..." -ForegroundColor Green
114114
Add-HostsEntry "xp0cm.localhost"
115115
Add-HostsEntry "xp0id.localhost"
116116

117-
Write-Host "Done!" -ForegroundColor Green
117+
Write-Host "Done!" -ForegroundColor Green

0 commit comments

Comments
 (0)