aetherscale

[unmaintained] code for a cloud provider tutorial
Log | Files | Refs | README | LICENSE

commit 6b53ec3fab1aece2735eab09de889915e2980a73
parent 30cd86ab4eca59c4f25f0b0e05f22fbc2293c0b0
Author: Stefan Koch <programming@stefan-koch.name>
Date:   Sat, 30 Jan 2021 19:29:45 +0100

create missing parent folders

Diffstat:
Maetherscale/computing.py | 3+++
Maetherscale/config.py | 2+-
2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/aetherscale/computing.py b/aetherscale/computing.py @@ -99,6 +99,9 @@ def setup_tap_device( setup_script = setup_script_path(resource_folder, tap_name) teardown_script = teardown_script_path(resource_folder, tap_name) + setup_script.parent.mkdir(parents=True, exist_ok=True) + teardown_script.parent.mkdir(parents=True, exist_ok=True) + with open(setup_script, 'w') as f: f.write(iproute.setup_script()) os.chmod(setup_script, 0o755) diff --git a/aetherscale/config.py b/aetherscale/config.py @@ -15,7 +15,7 @@ BASE_IMAGE_FOLDER = Path(os.getenv('BASE_IMAGE_FOLDER', default='base_images')) USER_IMAGE_FOLDER = Path(os.getenv('USER_IMAGE_FOLDER', default='user_images')) AETHERSCALE_CONFIG_DIR = Path.home() / '.config/aetherscale' -(AETHERSCALE_CONFIG_DIR / 'networking').mkdir(parents=True, exist_ok=True) +AETHERSCALE_CONFIG_DIR.mkdir(parents=True, exist_ok=True) VPN_CONFIG_FOLDER = AETHERSCALE_CONFIG_DIR / 'tinc' VPN_NUM_PREPARED_INTERFACES = 2