File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed
Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -351,3 +351,4 @@ MigrationBackup/
351351Package /
352352SAT /
353353scwpd /
354+ Module /
Original file line number Diff line number Diff line change @@ -147,12 +147,31 @@ else {
147147 New-Item - ItemType Directory - Force - Path $toolsDirectory
148148 }
149149
150+ Write-Host " =================================================================================================================================="
151+ Write-Host " `n "
152+ Write-Host " START - [Copying over .scwdp contents to Sitecore module asset image structure]"
153+ Write-Host " `n "
154+
155+ # Copy content
156+ Copy-Item - Path " $extractSCwdpDirectory \Content\Website\*" - Destination $cmContentDirectory - PassThru - Recurse
157+
158+ # Copy dacpacs + rename
159+ if (Test-Path (" $extractSCwdpDirectory \core.dacpac" )) {
160+ Copy-Item - Path " $extractSCwdpDirectory \core.dacpac" - Destination $dbDirectory - PassThru
161+ Rename-Item - Path " $dbDirectory \core.dacpac" - NewName " Sitecore.Core.dacpac"
162+ }
163+
164+ if (Test-Path (" $extractSCwdpDirectory \master.dacpac" )) {
165+ Copy-Item - Path " $extractSCwdpDirectory \master.dacpac" - Destination $dbDirectory - PassThru
166+ Rename-Item - Path " $dbDirectory \master.dacpac" - NewName " Sitecore.Master.dacpac"
167+ }
168+
150169 Write-Host " =================================================================================================================================="
151170 Write-Host " `n "
152171 Write-Host " SUCCESS - Succesfully created the Docker Asset Image structure in directory $moduleDirectory " - ForegroundColor Green
153172 Write-Host " `n "
154173
155- tree $moduleDirectory / a
174+ tree $moduleDirectory / f / a
156175
157176 Write-Host " `n "
158177 Write-Host " =================================================================================================================================="
You can’t perform that action at this time.
0 commit comments