diff --git a/data/interfaces/default/config.html b/data/interfaces/default/config.html
index a087b2af..3be397e2 100644
--- a/data/interfaces/default/config.html
+++ b/data/interfaces/default/config.html
@@ -685,6 +685,14 @@
+
+
+
+
+
+
+
+
diff --git a/headphones/webserve.py b/headphones/webserve.py
index 1807409f..5aa452ef 100644
--- a/headphones/webserve.py
+++ b/headphones/webserve.py
@@ -696,7 +696,9 @@ class WebInterface(object):
"customsleep": headphones.CUSTOMSLEEP,
"hpuser": headphones.HPUSER,
"hppass": headphones.HPPASS,
- "cache_sizemb":headphones.CACHE_SIZEMB,
+ "cache_sizemb": headphones.CACHE_SIZEMB,
+ "file_permissions": headphones.FILE_PERMISSIONS,
+ "folder_permissions": headphones.FOLDER_PERMISSIONS
}
# Need to convert EXTRAS to a dictionary we can pass to the config: it'll come in as a string like 2,5,6,8
@@ -731,7 +733,7 @@ class WebInterface(object):
xbmc_update=0, xbmc_notify=0, nma_enabled=False, nma_apikey=None, nma_priority=0, nma_onsnatch=0, synoindex_enabled=False,
pushover_enabled=0, pushover_onsnatch=0, pushover_keys=None, pushover_priority=0, mirror=None, customhost=None, customport=None,
customsleep=None, hpuser=None, hppass=None, preferred_bitrate_high_buffer=None, preferred_bitrate_low_buffer=None, preferred_bitrate_allow_lossless=0, cache_sizemb=None,
- enable_https=0, https_cert=None, https_key=None, **kwargs):
+ enable_https=0, https_cert=None, https_key=None, file_permissions=None, folder_permissions=None, **kwargs):
headphones.HTTP_HOST = http_host
headphones.HTTP_PORT = http_port
@@ -860,6 +862,8 @@ class WebInterface(object):
headphones.HPUSER = hpuser
headphones.HPPASS = hppass
headphones.CACHE_SIZEMB = int(cache_sizemb)
+ headphones.FILE_PERMISSIONS = file_permissions
+ headphones.FOLDER_PERMISSIONS = folder_permissions
# Handle the variable config options. Note - keys with False values aren't getting passed