File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
center/src/main/java/com/microsoft/hydralab/center Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 33package com .microsoft .hydralab .center .service ;
44
55import com .microsoft .hydralab .center .repository .AgentUserRepository ;
6+ import com .microsoft .hydralab .center .util .CenterConstant ;
67import com .microsoft .hydralab .center .util .SecretGenerator ;
78import com .microsoft .hydralab .common .entity .center .AgentUser ;
89import com .microsoft .hydralab .common .entity .center .SysUser ;
@@ -138,7 +139,7 @@ public File generateAgentConfigFile(String agentId) {
138139 File agentConfigFile = File .createTempFile (
139140 "application" ,
140141 ".yml" ,
141- new File (". \\ " ));
142+ new File (CenterConstant . CENTER_TEMP_FILE_DIR ));
142143
143144 FileWriter fileWriter = new FileWriter (agentConfigFile .getAbsolutePath ());
144145 fileWriter .write ("app:\n " +
Original file line number Diff line number Diff line change 44
55public class CenterConstant {
66 public static final String CENTER_FILE_BASE_DIR = "storage/test/package/" ;
7+ public static final String CENTER_TEMP_FILE_DIR = "storage/temp/" ;
78}
You can’t perform that action at this time.
0 commit comments