2018-01-29 14:33:52 +00:00
|
|
|
if (Test-Path "C:\inetpub\wwwroot\tmp-build.enpaul") {
|
|
|
|
Remove-Item -Path "C:\inetpub\wwwroot\tmp-build.enpaul" -Recurse -Force
|
|
|
|
}
|
|
|
|
|
|
|
|
New-Item -Path "C:\inetpub\wwwroot\" -Name "tmp-build.enpaul" -ItemType Directory -Force
|
|
|
|
|
|
|
|
Copy-Item -Path ".\*" -Destination "C:\inetpub\wwwroot\tmp-build.enpaul\" -Force -Recurse
|
|
|
|
|
|
|
|
if (Test-Path "C:\inetpub\wwwroot\tmp-build.enpaul\.git") {
|
|
|
|
Remove-Item -Path "C:\inetpub\wwwroot\tmp-build.enpaul\.git" -Recurse -Force
|
|
|
|
}
|
|
|
|
if (Test-Path "C:\inetpub\wwwroot\tmp-build.enpaul\.gitlab-ci.yml") {
|
|
|
|
Remove-Item -Path "C:\inetpub\wwwroot\tmp-build.enpaul\.gitlab-ci.yml" -Force
|
|
|
|
}
|
2018-01-29 15:29:15 +00:00
|
|
|
|
|
|
|
Remove-Item -Path "C:\inetpub\wwwroot\tmp-build.enpaul\*.ps1" -Force
|
|
|
|
|
2018-01-29 14:33:52 +00:00
|
|
|
if (Test-Path "C:\inetpub\wwwroot\tmp-build.enpaul\.gitignore") {
|
|
|
|
Remove-Item -Path "C:\inetpub\wwwroot\tmp-build.enpaul\.gitignore" -Force
|
|
|
|
}
|
|
|
|
if (Test-Path "C:\inetpub\wwwroot\tmp-build.enpaul\.htaccess") {
|
|
|
|
Remove-Item -Path "C:\inetpub\wwwroot\tmp-build.enpaul\.htaccess" -Force
|
|
|
|
}
|
|
|
|
|
2018-01-29 15:30:16 +00:00
|
|
|
if (Test-Path "C:\inetpub\wwwroot\enpaul") {
|
2018-01-29 15:29:15 +00:00
|
|
|
Rename-Item -Path "C:\inetpub\wwwroot\enpaul" -NewName "enpaul.old" -Force
|
|
|
|
}
|
|
|
|
|
2018-01-29 14:33:52 +00:00
|
|
|
Rename-Item -Path "C:\inetpub\wwwroot\tmp-build.enpaul" -NewName "enpaul" -Force
|
|
|
|
|
2018-01-29 15:29:15 +00:00
|
|
|
if (Test-Path "C:\inetpub\wwwroot\enpaul.old") {
|
|
|
|
Remove-Item -path "C:\inetpub\wwwroot\enpaul.old" -Recurse -Force
|
|
|
|
}
|
|
|
|
|
2018-01-29 14:33:52 +00:00
|
|
|
exit
|