Skip to content

Commit

Permalink
feat (event): Simplify user-domain-changed event handler 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 64d91fa commit ec7dcdd
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 ec7dcdd

Please sign in to comment.