diff --git a/imageroot/events/user-domain-changed/20configure_ldap b/imageroot/events/user-domain-changed/20configure_ldap index 48a7e0f..7a4d68a 100755 --- a/imageroot/events/user-domain-changed/20configure_ldap +++ b/imageroot/events/user-domain-changed/20configure_ldap @@ -15,7 +15,4 @@ event = json.load(sys.stdin) if event.get('domain') != os.getenv('EJABBERD_LDAP_DOMAIN'): exit(0) -if 'node' in event and str(event['node']) != os.getenv('NODE_ID'): - exit(0) # ignore event if the source is not in our node - -agent.run_helper('systemctl', '--user', '-T', 'try-reload-or-restart', 'ejabberd.service').check_returncode() +agent.run_helper('systemctl', '--user', '-T', 'try-restart', 'ejabberd.service').check_returncode()