set update interval

This commit is contained in:
psy 2021-12-21 09:36:20 +01:00
parent 11d1a026aa
commit bb994f6326
No known key found for this signature in database
GPG key ID: DFF5B17AC3A8ECF5

View file

@ -89,6 +89,10 @@ def run_module():
rc, stdout, stderr = module.run_command(['/usr/bin/php', 'occ', 'ldap:set-config', module.params['config']['config_id'], 'ldapConfigurationActive',
'1'], check_rc=True, cwd=module.params['nextcloud_path'])
# set update interval, seems necessary to activate sync.
rc, stdout, stderr = module.run_command(['/usr/bin/php', 'occ', 'config:app:set', 'user_ldap' 'updateAttributesInterval' '--value=86400'],
check_rc=True, cwd=module.params['nextcloud_path'])
module.exit_json(**result)