diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-06-28 15:10:50 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2016-06-28 15:10:50 -0400 |
commit | 8005911ff6922d896a4a34192a4b0b0d5ade002f (patch) | |
tree | 8caba62024a59969a7d6b98a9549779cd995a911 /utils | |
parent | 22dcf00a3f802117306c3bb55db08e8c4aaacfb1 (diff) | |
download | chat-8005911ff6922d896a4a34192a4b0b0d5ade002f.tar.gz chat-8005911ff6922d896a4a34192a4b0b0d5ade002f.tar.bz2 chat-8005911ff6922d896a4a34192a4b0b0d5ade002f.zip |
Syncronization interval now set on config save. (#3421)
Diffstat (limited to 'utils')
-rw-r--r-- | utils/config.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/config.go b/utils/config.go index 79d1d8e4b..60d09dee3 100644 --- a/utils/config.go +++ b/utils/config.go @@ -186,6 +186,12 @@ func LoadConfig(fileName string) { Cfg = &config ClientCfg = getClientConfig(Cfg) + + // Actions that need to run every time the config is loaded + if ldapI := einterfaces.GetLdapInterface(); ldapI != nil { + // This restarts the job if nessisary (works for config reloads) + ldapI.StartLdapSyncJob() + } } func getClientConfig(c *model.Config) map[string]string { |