Skip to content

Commit

Permalink
data dir for downloads now created on windows as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
david-i-berry committed Aug 22, 2024
1 parent f9ccec5 commit 5c02689
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docker-compose.override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ services:
mosquitto:
ports:
- 1883:1883
- 8884:8884
#- 8884:8884
4 changes: 2 additions & 2 deletions wis2box-broker/mosquitto.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ listener 1883
protocol mqtt

## WebSockets Listener
listener 8884
protocol websockets
#listener 8884
#protocol websockets

5 changes: 3 additions & 2 deletions wis2box-create-config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5c02689

Please sign in to comment.