CreateLinuxShellFile in the binConfigs folder

pull/6797/head
2dust 2025-02-23 17:19:45 +08:00
parent 2f3e409487
commit aeddbc1dcc
1 changed files with 1 additions and 1 deletions

View File

@ -380,7 +380,7 @@ namespace ServiceLib.Handler
private async Task<string> CreateLinuxShellFile(string cmdLine, string fileName)
{
//Shell scripts
var shFilePath = Utils.GetBinPath(AppHandler.Instance.IsAdministrator ? "root_" + fileName : fileName);
var shFilePath = Utils.GetBinConfigPath(AppHandler.Instance.IsAdministrator ? "root_" + fileName : fileName);
File.Delete(shFilePath);
var sb = new StringBuilder();
sb.AppendLine("#!/bin/sh");