Skip to content

Commit

Permalink
Merge pull request #57 from NethServer/sdl-7103
Browse files Browse the repository at this point in the history
Fix user-domain-changed event NethServer/dev#7103
  • Loading branch information
stephdl authored Nov 25, 2024
2 parents 6d1c641 + cb7f2a5 commit c5a0d4c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 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' 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()

0 comments on commit c5a0d4c

Please sign in to comment.