Skip to content

Commit b3392e0

Browse files
authored
Fixing standby paths set in ScriptApplicationHostOptionsSetup to ensure proper path separators are used (#10795)
1 parent 0fdee54 commit b3392e0

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

release_notes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@
1919
- Add support for the release channel setting `WEBSITE_PlatformReleaseChannel` and use this value in extension bundles resolution.
2020
- Update PowerShell 7.4 worker to [4.0.4134](https://github.com/Azure/azure-functions-powershell-worker/releases/tag/v4.0.4134)
2121
- Update Python Worker Version to [4.35.0](https://github.com/Azure/azure-functions-python-worker/releases/tag/4.35.0)
22+
- Fixed standby paths in ScriptApplicationHostOptions to ensure proper Linux path separators (#10795)

src/WebJobs.Script.WebHost/Configuration/ScriptApplicationHostOptionsSetup.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,12 @@ public void Configure(string name, ScriptApplicationHostOptions options)
5656
// to be used by the placeholder site.
5757
// Important that we use paths that are different than the configured paths
5858
// to ensure that placeholder files are isolated
59-
string tempRoot = Path.GetTempPath();
59+
var tempRoot = Path.GetTempPath();
60+
var standbyFunctionsPath = Path.Combine(tempRoot, "functions", "standby");
6061

61-
options.LogPath = Path.Combine(tempRoot, @"functions\standby\logs");
62-
options.ScriptPath = Path.Combine(tempRoot, @"functions\standby\wwwroot");
63-
options.SecretsPath = Path.Combine(tempRoot, @"functions\standby\secrets");
62+
options.LogPath = Path.Combine(standbyFunctionsPath, "logs");
63+
options.ScriptPath = Path.Combine(standbyFunctionsPath, "wwwroot");
64+
options.SecretsPath = Path.Combine(standbyFunctionsPath, "secrets");
6465
options.IsSelfHost = options.IsSelfHost;
6566
options.IsStandbyConfiguration = true;
6667
}

0 commit comments

Comments
 (0)