Skip to content

Commit

Permalink
Fix (event): simplify user-domain-changed event handling by removing …
Browse files Browse the repository at this point in the history
…node_id check
  • Loading branch information
stephdl committed Nov 22, 2024
1 parent 11de73d commit c27be1e
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('POSTFIX_ORIGIN'):
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-reload-or-restart', 'dovecot.service', 'postfix.service').check_returncode()

0 comments on commit c27be1e

Please sign in to comment.