Skip to content

Commit

Permalink
fix: Correct key name in user-domain-changed event handler for node i…
Browse files Browse the repository at this point in the history
…dentification
  • Loading branch information
stephdl committed Nov 19, 2024
1 parent 7d0a625 commit 7147110
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imageroot/events/user-domain-changed /20configure_ldap
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ event = json.load(sys.stdin)
if event.get('domain') != os.getenv('NEXTCLOUD_DOMAIN'):
exit(0)

if 'node' in event and str(event['node']) != os.getenv('NODE_ID'):
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 7147110

Please sign in to comment.