use correct structure when ocis init

Signed-off-by: jkoberg <jkoberg@owncloud.com>
This commit is contained in:
jkoberg
2023-12-27 17:39:20 +01:00
committed by Michael Barz
parent 1ebf03bb81
commit ec730a797c
3 changed files with 11 additions and 2 deletions
+2 -2
View File
@@ -74,7 +74,7 @@ type IdmService struct {
}
type SettingsService struct {
ServiceAccountIDAdmin string `yaml:"service_account_id_admin"`
ServiceAccountIDs []string `yaml:"service_account_ids"`
}
type FrontendService struct {
@@ -400,7 +400,7 @@ func CreateConfig(insecure, forceOverwrite bool, configPath, adminPassword strin
ServiceAccount: serviceAccount,
},
Settings: SettingsService{
ServiceAccountIDAdmin: serviceAccount.ServiceAccountID,
ServiceAccountIDs: []string{serviceAccount.ServiceAccountID},
},
}