mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-31 17:45:13 +08:00
⛅ Sync 2026-09-05 14:47:29
This commit is contained in:
1 parent
542a97782d
commit
c5b7496c5d
19 files changed
+219
-230
No files matched your search
@@ -18,9 +18,11 @@ start() {
|
||||
local listen_port root_path base_url
|
||||
config_get listen_port "config" "listen_port" "8989"
|
||||
config_get root_path "config" "root_path" "/"
|
||||
config_get base_url "config" "base_url" "/"
|
||||
|
||||
echo "Starting filebrowser..."
|
||||
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"
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user