Signed-off-by: Jo-Philipp Wich <jo@mein.io>
--- /dev/null
+{
+ "luci-app-openvpn": {
+ "description": "Grant file upload access to /etc/openvpn",
+ "write": {
+ "cgi-io": [ "upload" ],
+ "file": {
+ "/etc/openvpn/*": [ "write" ]
+ }
+ }
+ }
+}
o.value = option[3]
elseif option[1] == FileUpload then
+ o.initial_directory = "/etc/openvpn"
+
function o.cfgvalue(self, section)
local cfg_val = AbstractValue.cfgvalue(self, section)
o.value = option[3]
elseif option[1] == FileUpload then
+ o.initial_directory = "/etc/openvpn"
+
function o.cfgvalue(self, section)
local cfg_val = AbstractValue.cfgvalue(self, section)