File tree Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -47,14 +47,16 @@ import (
4747
4848type  CurveAdm  struct  {
4949	// project layout 
50- 	rootDir    string 
51- 	dataDir    string 
52- 	pluginDir  string 
53- 	logDir     string 
54- 	tempDir    string 
55- 	dbpath     string 
56- 	logpath    string 
57- 	config     * configure.CurveAdmConfig 
50+ 	rootDir       string 
51+ 	dataDir       string 
52+ 	pluginDir     string 
53+ 	logDir        string 
54+ 	tempDir       string 
55+ 	dbpath        string 
56+ 	logpath       string 
57+ 	httpConfPath  string 
58+ 	httpLogPath   string 
59+ 	config        * configure.CurveAdmConfig 
5860
5961	// data pipeline 
6062	in          io.Reader 
@@ -97,6 +99,8 @@ func NewCurveAdm() (*CurveAdm, error) {
9799		pluginDir : path .Join (rootDir , "plugins" ),
98100		logDir :    path .Join (rootDir , "logs" ),
99101		tempDir :   path .Join (rootDir , "temp" ),
102+ 		httpConfPath : path .Join (rootDir , "http/conf" ),
103+ 		httpLogPath :  path .Join (rootDir , "http/logs" ),
100104	}
101105
102106	err  =  curveadm .init ()
@@ -116,6 +120,8 @@ func (curveadm *CurveAdm) init() error {
116120		curveadm .pluginDir ,
117121		curveadm .logDir ,
118122		curveadm .tempDir ,
123+ 		curveadm .httpConfPath ,
124+ 		curveadm .httpLogPath ,
119125	}
120126	for  _ , dir  :=  range  dirs  {
121127		if  err  :=  os .MkdirAll (dir , os .ModePerm ); err  !=  nil  {
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments