diff --git a/filebrowser/files/filebrowser.config b/filebrowser/files/filebrowser.config index ba72197d..b28f95d3 100644 --- a/filebrowser/files/filebrowser.config +++ b/filebrowser/files/filebrowser.config @@ -2,6 +2,4 @@ config filebrowser 'config' option enabled '0' option listen_port '8989' option root_path '/' - option base_url '/' - option disable_exec '1' diff --git a/filebrowser/files/filebrowser.init b/filebrowser/files/filebrowser.init index 86152ca3..09b06298 100644 --- a/filebrowser/files/filebrowser.init +++ b/filebrowser/files/filebrowser.init @@ -20,8 +20,8 @@ start() { config_get root_path "config" "root_path" "/" echo "Starting filebrowser..." - sed -e "s/ port:.*/ port:$listen_port/" \ - -e "s, - path:.*, - path:\"$root_path\"," \ + sed -e "s/ port:.*/ port: $listen_port/" \ + -e "s, - path:.*, - path: \"$root_path\"," \ -i "$CONF_PATH" start-stop-daemon -S -q -b -m -p "$PID_FILE" -x "$PROG" -- -c "$CONF_PATH" } diff --git a/luci-app-filebrowser/htdocs/luci-static/resources/view/filebrowser.js b/luci-app-filebrowser/htdocs/luci-static/resources/view/filebrowser.js index d18e3ab8..865a5bc6 100644 --- a/luci-app-filebrowser/htdocs/luci-static/resources/view/filebrowser.js +++ b/luci-app-filebrowser/htdocs/luci-static/resources/view/filebrowser.js @@ -82,10 +82,6 @@ return view.extend({ o = s.option(form.Value, 'root_path', _('Root directory')); o.default = '/'; o.rmempty = false; - - o = s.option(form.Value, 'base_url', _('Base url')); - o.default = '/'; - o.rmempty = false; return m.render(); }