mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-31 02:15:13 +08:00
This commit is contained in:
1 parent
70e84ddf56
commit
5f9dbf5e2d
3 files changed
+2
-8
No files matched your search
@@ -2,6 +2,4 @@ config filebrowser 'config'
|
|||||||
option enabled '0'
|
option enabled '0'
|
||||||
option listen_port '8989'
|
option listen_port '8989'
|
||||||
option root_path '/'
|
option root_path '/'
|
||||||
option base_url '/'
|
|
||||||
option disable_exec '1'
|
|
||||||
|
|
||||||
@@ -20,8 +20,8 @@ start() {
|
|||||||
config_get root_path "config" "root_path" "/"
|
config_get root_path "config" "root_path" "/"
|
||||||
|
|
||||||
echo "Starting filebrowser..."
|
echo "Starting filebrowser..."
|
||||||
sed -e "s/ port:.*/ port:$listen_port/" \
|
sed -e "s/ port:.*/ port: $listen_port/" \
|
||||||
-e "s, - path:.*, - path:\"$root_path\"," \
|
-e "s, - path:.*, - path: \"$root_path\"," \
|
||||||
-i "$CONF_PATH"
|
-i "$CONF_PATH"
|
||||||
start-stop-daemon -S -q -b -m -p "$PID_FILE" -x "$PROG" -- -c "$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 = s.option(form.Value, 'root_path', _('Root directory'));
|
||||||
o.default = '/';
|
o.default = '/';
|
||||||
o.rmempty = false;
|
o.rmempty = false;
|
||||||
|
|
||||||
o = s.option(form.Value, 'base_url', _('Base url'));
|
|
||||||
o.default = '/';
|
|
||||||
o.rmempty = false;
|
|
||||||
|
|
||||||
return m.render();
|
return m.render();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user