Skip to content

Commit 7642575

Browse files
authored
fix: add missing PUBLIC_ENDPOINTS to network env (#148)
1 parent 9b98c1c commit 7642575

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env python3
2+
3+
#
4+
# Copyright (C) 2025 Nethesis S.r.l.
5+
# SPDX-License-Identifier: GPL-3.0-or-later
6+
#
7+
8+
# Set PUBLIC_ENDPOINTS if not already set
9+
10+
import agent
11+
12+
network = agent.read_envfile('network.env')
13+
if 'PUBLIC_ENDPOINTS' not in network:
14+
network['PUBLIC_ENDPOINTS'] = '/api/units/register'
15+
agent.write_envfile('network.env', network)

0 commit comments

Comments
 (0)