File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ import (
3434	"github.com/mongodb/mongodb-atlas-cli/atlascli/internal/cli/setup" 
3535	"github.com/mongodb/mongodb-atlas-cli/atlascli/internal/cli/workflows" 
3636	"github.com/mongodb/mongodb-atlas-cli/atlascli/internal/compass" 
37+ 	"github.com/mongodb/mongodb-atlas-cli/atlascli/internal/config" 
3738	"github.com/mongodb/mongodb-atlas-cli/atlascli/internal/container" 
3839	"github.com/mongodb/mongodb-atlas-cli/atlascli/internal/flag" 
3940	"github.com/mongodb/mongodb-atlas-cli/atlascli/internal/log" 
@@ -195,6 +196,11 @@ func (opts *SetupOpts) configureMongod(ctx context.Context) error {
195196	envVars  :=  map [string ]string {
196197		"TOOL" : "ATLASCLI" ,
197198	}
199+ 
200+ 	if  ! config .TelemetryEnabled () {
201+ 		envVars ["DO_NOT_TRACK" ] =  "1" 
202+ 	}
203+ 
198204	if  opts .IsAuthEnabled () {
199205		envVars ["MONGODB_INITDB_ROOT_USERNAME" ] =  opts .DBUsername 
200206		envVars ["MONGODB_INITDB_ROOT_PASSWORD" ] =  opts .DBUserPassword 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments