Skip to content

Commit

Permalink
fix(event): Remove node ID validation from user-domain-changed event …
Browse files Browse the repository at this point in the history
…handler
  • Loading branch information
stephdl committed Nov 22, 2024
1 parent 6a29247 commit 1d222e2
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 @@ -18,7 +18,4 @@ nextcloud_domain = config.get('NEXTCLOUD_DOMAIN', '')
if event.get('domain') != nextcloud_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-reload-or-restart', 'nextcloud.service').check_returncode()

0 comments on commit 1d222e2

Please sign in to comment.