From 5c02689aa94ef064151560488a57244bf4f21596 Mon Sep 17 00:00:00 2001 From: david-i-berry Date: Thu, 22 Aug 2024 13:49:06 +0200 Subject: [PATCH] data dir for downloads now created on windows as well. --- docker-compose.override.yml | 2 +- wis2box-broker/mosquitto.conf | 4 ++-- wis2box-create-config.py | 5 +++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/docker-compose.override.yml b/docker-compose.override.yml index 292c5ea7..ca19a7ff 100644 --- a/docker-compose.override.yml +++ b/docker-compose.override.yml @@ -17,4 +17,4 @@ services: mosquitto: ports: - 1883:1883 - - 8884:8884 + #- 8884:8884 diff --git a/wis2box-broker/mosquitto.conf b/wis2box-broker/mosquitto.conf index a00c7844..358d4ba6 100644 --- a/wis2box-broker/mosquitto.conf +++ b/wis2box-broker/mosquitto.conf @@ -14,6 +14,6 @@ listener 1883 protocol mqtt ## WebSockets Listener -listener 8884 -protocol websockets +#listener 8884 +#protocol websockets diff --git a/wis2box-create-config.py b/wis2box-create-config.py index 2f15351d..0dc4a6fb 100644 --- a/wis2box-create-config.py +++ b/wis2box-create-config.py @@ -437,9 +437,10 @@ def create_config_dir() -> str: print("Please check the path and your permissions.") exit() print(f"The directory {config_dir} has been created.") + + download_dir = config_dir / 'downloads' + download_dir.mkdir(mode=0o775) if not WINDOWS: - download_dir = config_dir / 'downloads' - download_dir.mkdir(mode=0o775) shutil.chown(download_dir, group='docker') except Exception: