Commit ee651a54 authored by Raphael Defosseux's avatar Raphael Defosseux

Merge branch 'fix_entrypoint' into 'develop'

fix: bug in entrypoint.py

See merge request oai/cn5g/oai-cn5g-smf!184
parents 0c968569 34eb0243
......@@ -51,8 +51,8 @@ if MOUNT_CONFIG != "yes":
with open(CONFIG_FILE, "w") as fh:
fh.write(output)
print(f"Configuration file {CONFIG_FILE} is ready")
if len(sys.argv) == 1:
sys.exit(0)
os.execvp(sys.argv[1], sys.argv[1:]) #important for running the network function it works like exec $@
else:
print("Configuration file is mounted to the network function")
if len(sys.argv) == 1:
sys.exit(0)
os.execvp(sys.argv[1], sys.argv[1:]) #important for running the network function it works like exec $@
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment