Fix service user usage for eos

This commit is contained in:
Benedikt Kulmann
2020-10-05 12:24:27 +02:00
parent 673d7cf50c
commit 862329cce0
4 changed files with 51 additions and 29 deletions
+7 -7
View File
@@ -127,6 +127,13 @@ func ServerWithConfig(cfg *config.Config) []cli.Flag {
EnvVars: []string{"ACCOUNTS_STORAGE_CS3_DATA_PREFIX"},
Destination: &cfg.Repo.CS3.DataPrefix,
},
&cli.StringFlag{
Name: "service-user-uuid",
Value: "95cb8724-03b2-11eb-a0a6-c33ef8ef53ad",
Usage: "uuid of the internal service user (required on EOS)",
EnvVars: []string{"ACCOUNTS_SERVICE_USER_UUID"},
Destination: &cfg.ServiceUser.UUID,
},
&cli.StringFlag{
Name: "service-user-username",
Value: "",
@@ -134,13 +141,6 @@ func ServerWithConfig(cfg *config.Config) []cli.Flag {
EnvVars: []string{"ACCOUNTS_SERVICE_USER_USERNAME"},
Destination: &cfg.ServiceUser.Username,
},
&cli.StringFlag{
Name: "service-user-password",
Value: "",
Usage: "password of the internal service user (required on EOS)",
EnvVars: []string{"ACCOUNTS_SERVICE_USER_PASSWORD"},
Destination: &cfg.ServiceUser.Password,
},
&cli.Int64Flag{
Name: "service-user-uid",
Value: 0,