mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-09-11 02:44:57 +08:00
This commit is contained in:
@@ -2,6 +2,4 @@ config filebrowser 'config'
|
||||
option enabled '0'
|
||||
option listen_port '8989'
|
||||
option root_path '/'
|
||||
option base_url '/'
|
||||
option disable_exec '1'
|
||||
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user