Skip to content

Commit

Permalink
fix(event): remove node_id check from LDAP configuration script
Browse files Browse the repository at this point in the history
  • Loading branch information
stephdl committed Nov 22, 2024
1 parent 6523809 commit 115ade8
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('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', 'try-restart', 'sogo.service').check_returncode()

0 comments on commit 115ade8

Please sign in to comment.