Skip to content

Commit

Permalink
Fix (event): remove node_id check from LDAP domain change event
Browse files Browse the repository at this point in the history
  • Loading branch information
stephdl committed Nov 22, 2024
1 parent cc81883 commit cb7f2a5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions imageroot/events/user-domain-changed/20configure_ldap
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,4 @@ event = json.load(sys.stdin)
if event.get('domain') != os.getenv('EJABBERD_LDAP_DOMAIN'):
exit(0)

if 'node_id' in event and str(event['node_id']) != os.getenv('NODE_ID'):
exit(0) # ignore event if the source is not in our node

agent.run_helper('systemctl', '--user', '-T', 'try-restart', 'ejabberd.service').check_returncode()

0 comments on commit cb7f2a5

Please sign in to comment.