Skip to content

Commit

Permalink
feat(event): Read NEXTCLOUD_DOMAIN from config.env in user-domain-cha…
Browse files Browse the repository at this point in the history
…nged event handler
  • Loading branch information
stephdl committed Nov 21, 2024
1 parent 09e2600 commit 6a29247
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ import os

event = json.load(sys.stdin)

if event.get('domain') != os.getenv('NEXTCLOUD_DOMAIN'):
config = agent.read_envfile("config.env")
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'):
Expand Down

0 comments on commit 6a29247

Please sign in to comment.