From ec7dcddf25111ff5d40d310dfe2d82ce0364d5bc Mon Sep 17 00:00:00 2001 From: Stephane de Labrusse Date: Fri, 22 Nov 2024 12:04:49 +0100 Subject: [PATCH] feat (event): Simplify user-domain-changed event handler by removing node_id check --- imageroot/events/user-domain-changed/20configure_ldap | 3 --- 1 file changed, 3 deletions(-) diff --git a/imageroot/events/user-domain-changed/20configure_ldap b/imageroot/events/user-domain-changed/20configure_ldap index d12d73d..3320f3d 100755 --- a/imageroot/events/user-domain-changed/20configure_ldap +++ b/imageroot/events/user-domain-changed/20configure_ldap @@ -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()