Create /etc/network/interfaces.d in Docker container. Fixes #2052

This commit is contained in:
grossmj 2022-04-20 22:59:51 +07:00
parent 460fe5ed95
commit 890dbd9f77

View File

@ -290,6 +290,7 @@ class DockerVM(BaseNode):
os.makedirs(os.path.join(path, "if-down.d"), exist_ok=True)
os.makedirs(os.path.join(path, "if-pre-up.d"), exist_ok=True)
os.makedirs(os.path.join(path, "if-post-down.d"), exist_ok=True)
os.makedirs(os.path.join(path, "interfaces.d"), exist_ok=True)
if not os.path.exists(os.path.join(path, "interfaces")):
with open(os.path.join(path, "interfaces"), "w+") as f: