Skip to content

Commit ba53a74

Browse files
committed
Adding changes to make the installer not overwrite appsettings.json upon update.
1 parent d0389cf commit ba53a74

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

eFormAPI/Installation/CustomActions/CustomAction.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,6 +1041,9 @@ private static void DirectoryCopy(string sourceDirName, string destDirName, bool
10411041
if (file.Name.Equals("Web.config", StringComparison.InvariantCultureIgnoreCase) && File.Exists(temppath))
10421042
continue;
10431043

1044+
if (file.Name.Equals("appsettings.json", StringComparison.InvariantCultureIgnoreCase) && File.Exists(temppath))
1045+
continue;
1046+
10441047
if (File.Exists(temppath) && !overrideFile)
10451048
continue;
10461049

0 commit comments

Comments
 (0)