Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for loadEnvVarsFromFiles (0.18 sec)

  1. cmd/common-main.go

    	if err != nil {
    		if os.IsNotExist(err) { // ignore if file doesn't exist.
    			return "", nil
    		}
    		return "", err
    	}
    	return string(bytes.TrimSpace(credBuf)), nil
    }
    
    func loadEnvVarsFromFiles() {
    	if env.IsSet(config.EnvAccessKeyFile) {
    		accessKey, err := readFromSecret(env.Get(config.EnvAccessKeyFile, ""))
    		if err != nil {
    			logger.Fatal(config.ErrInvalidCredentials(err),
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 21:50:11 UTC 2024
    - 31.7K bytes
    - Viewed (0)
  2. cmd/server-main.go

    		if err != nil {
    			// We can only log here since we need globalConsoleSys initialized
    			logger.Fatal(err, "invalid --logrorate-dir option")
    		}
    	})
    
    	// Always load ENV variables from files first.
    	loadEnvVarsFromFiles()
    
    	// Handle early server environment vars
    	serverHandleEarlyEnvVars()
    
    	// Handle all server command args and build the disks layout
    	bootstrapTrace("serverHandleCmdArgs", func() {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 21:50:11 UTC 2024
    - 35.2K bytes
    - Viewed (1)
Back to top