2017-08-29 20:53:55 +00:00
|
|
|
if (Test-Path "C:\inetpub\wwwroot\enpaul.net.new") {
|
|
|
|
Remove-Item -Path "C:\inetpub\wwwroot\enpaul.net.new" -Recurse -Force
|
|
|
|
}
|
2017-08-29 20:47:26 +00:00
|
|
|
|
2017-08-29 20:53:55 +00:00
|
|
|
New-Item -Path "C:\inetpub\wwwroot\" -Name "enpaul.net.new" -ItemType Directory -Force
|
2017-08-29 20:47:26 +00:00
|
|
|
|
2017-08-30 02:17:48 +00:00
|
|
|
Copy-Item -Path ".\*" -Destination "C:\inetpub\wwwroot\enpaul.net.new\" -Force -Recurse
|
|
|
|
|
2017-08-30 02:20:52 +00:00
|
|
|
if (Test-Path "C:\inetpub\wwwroot\enpaul.net.new\.git") {
|
|
|
|
Remove-Item -Path "C:\inetpub\wwwroot\enpaul.net.new\.git" -Recurse -Force
|
|
|
|
}
|
|
|
|
if (Test-Path "C:\inetpub\wwwroot\enpaul.net.new\.gitlab-ci.yml") {
|
|
|
|
Remove-Item -Path "C:\inetpub\wwwroot\enpaul.net.new\.gitlab-ci.yml" -Force
|
|
|
|
}
|
|
|
|
if (Test-Path "C:\inetpub\wwwroot\enpaul.net.new\deploy.ps1") {
|
|
|
|
Remove-Item -Path "C:\inetpub\wwwroot\enpaul.net.new\deploy.ps1" -Force
|
|
|
|
}
|
|
|
|
if (Test-Path "C:\inetpub\wwwroot\enpaul.net.new\.gitignore") {
|
|
|
|
Remove-Item -Path "C:\inetpub\wwwroot\enpaul.net.new\.gitignore" -Force
|
|
|
|
}
|
2017-12-21 23:20:17 +00:00
|
|
|
if (Test-Path "C:\inetpub\wwwroot\enpaul.net.new\.htaccess") {
|
|
|
|
Remove-Item -Path "C:\inetpub\wwwroot\enpaul.net.new\.htaccess" -Force
|
|
|
|
}
|
2017-08-30 02:17:48 +00:00
|
|
|
|
2017-08-29 20:47:26 +00:00
|
|
|
Rename-Item -Path "C:\inetpub\wwwroot\enpaul.net" -NewName "enpaul.net.old" -Force
|
|
|
|
Rename-Item -Path "C:\inetpub\wwwroot\enpaul.net.new" -NewName "enpaul.net" -Force
|
2017-08-30 02:17:48 +00:00
|
|
|
|
2017-08-29 20:47:26 +00:00
|
|
|
Remove-Item -path "C:\inetpub\wwwroot\enpaul.net.old" -Recurse -Force
|
2017-08-29 20:30:47 +00:00
|
|
|
exit
|