Skip to content

Commit f01a97c

Browse files
authored
Merge pull request #6869 from dimarobert/install-locker
Prevent the installBlocker lock file to be removed by subsequent requests during Upgrade or Install.
2 parents a870fea + a4b5ec7 commit f01a97c

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

DNN Platform/Website/Install/Install.aspx.cs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ private void InstallApplication()
224224
}
225225
else
226226
{
227+
bool cleanupLocker = false;
227228
try
228229
{
229230
var synchConnectionString = new SynchConnectionStringStep();
@@ -259,6 +260,7 @@ private void InstallApplication()
259260
return;
260261
}
261262

263+
cleanupLocker = true;
262264
RegisterInstallBegining();
263265
}
264266

@@ -314,7 +316,10 @@ private void InstallApplication()
314316
}
315317
finally
316318
{
317-
RegisterInstallEnd();
319+
if (cleanupLocker)
320+
{
321+
RegisterInstallEnd();
322+
}
318323
}
319324
}
320325
}
@@ -352,6 +357,7 @@ private bool CheckPermissions()
352357

353358
private void UpgradeApplication()
354359
{
360+
bool cleanupLocker = false;
355361
try
356362
{
357363
if (Upgrade.Upgrade.RemoveInvalidAntiForgeryCookie())
@@ -377,6 +383,7 @@ private void UpgradeApplication()
377383
return;
378384
}
379385

386+
cleanupLocker = true;
380387
RegisterInstallBegining();
381388
}
382389

@@ -498,7 +505,10 @@ private void UpgradeApplication()
498505
}
499506
finally
500507
{
501-
RegisterInstallEnd();
508+
if (cleanupLocker)
509+
{
510+
RegisterInstallEnd();
511+
}
502512
}
503513
}
504514

0 commit comments

Comments
 (0)