-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTest-MergeDiscoveryStorage.ps1
More file actions
32 lines (23 loc) · 1.02 KB
/
Test-MergeDiscoveryStorage.ps1
File metadata and controls
32 lines (23 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
param(
[ValidateScript({Test-Path $_ -PathType 'Container'})]
[string]$InstallerDirectoryPath='C:\Users\NetAdmin\Downloads\SDL Web 8.5'
)
$TestDir = '.'
rm -Force cd_storage_conf.xml | Out-Null
$discoveryStorageConfig = cp -PassThru ($InstallerDirectoryPath + '\Content Delivery\roles\deployer\deployer-combined\standalone\config\cd_storage_conf.xml') $TestDir
$discoveryHost = 'theServer'
$dbType='MSSQL'
$dbHost='theDatabaseServer'
$dbPort=1234
$dbName='itsTheBroker'
$dbUser='theBrokerUser'
$dbPassword='topSecret'
.\Merge-DiscoveryStorage.ps1 -discoveryStorageConfig $discoveryStorageConfig `
-discoveryHost $discoveryHost `
-dbType $dbType `
-dbHost $dbHost `
-dbPort $dbPort `
-dbName $dbName `
-dbUser $dbUser `
-dbPassword $dbPassword `
-stripComments