We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b98c1c commit 7642575Copy full SHA for 7642575
imageroot/update-module.d/11update_network_env
@@ -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