add STORAGE_USERS_DRIVER as a fallback env var

This commit is contained in:
A.Unger
2021-04-27 22:54:49 +02:00
parent aaddbdaf9a
commit 3f0d2cc28f

View File

@@ -176,7 +176,7 @@ func ServerWithConfig(cfg *config.Config) []cli.Flag {
Name: "users-driver",
Value: flags.OverrideDefaultString(cfg.StorageUsersDriver, "ocis"),
Usage: "storage driver for users mount: eg. local, eos, owncloud, ocis or s3",
EnvVars: []string{"STORAGE_USERS_DRIVER"},
EnvVars: []string{"OCS_STORAGE_USERS_DRIVER", "STORAGE_USERS_DRIVER"},
Destination: &cfg.StorageUsersDriver,
},
}