Merge pull request #8546 from owncloud/verify-service-accounts-are-set

verify all system accounts are set
This commit is contained in:
Jörn Friedrich Dreyer
2024-02-29 17:29:08 +01:00
committed by GitHub
14 changed files with 107 additions and 1 deletions
@@ -65,6 +65,13 @@ func Validate(cfg *config.Config) error {
"graph", defaults2.BaseConfigPath())
}
if cfg.ServiceAccount.ServiceAccountID == "" {
return shared.MissingServiceAccountID(cfg.Service.Name)
}
if cfg.ServiceAccount.ServiceAccountSecret == "" {
return shared.MissingServiceAccountSecret(cfg.Service.Name)
}
return nil
}