|
|
|
@@ -112,7 +112,7 @@ if (Test-Path $dbSrc) { |
|
|
|
$webConfigPath = Join-Path $publicDst "web.config" |
|
|
|
if (Test-Path $webConfigPath) { |
|
|
|
$wc = [System.IO.File]::ReadAllText($webConfigPath) |
|
|
|
$newConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=$WEBROOT\db\webdata.mdb;Persist Security Info=False;" |
|
|
|
$newConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=$WEBROOT\db\webdata.mdb;User Id=admin;Password=;Persist Security Info=False;" |
|
|
|
$wc = [regex]::Replace($wc, 'Provider=Microsoft\.(ACE\.OLEDB\.12\.0|Jet\.OLEDB\.4\.0)[^"]+', $newConn) |
|
|
|
if ($wc -notmatch 'enableParentPaths') { |
|
|
|
$wc = $wc -replace '<system.webServer>', '<system.webServer><asp enableParentPaths="true" />' |
|
|
|
|