fix errors with path

This commit is contained in:
CN_SZTL 2019-07-03 14:50:00 +08:00
parent d19d78d51e
commit 32380e2834
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
2 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,7 @@ start() {
[ "$enabled" == "1" ] || return
if [ ! -f "$path/baidupcs" ];then
mkdir -p $path
wget -O $path/baidupcs https://mirror.router.ctcgfw.generalcdn.top/download/mipsle/baidupcs-go && cd $path && ./baidupcs web --port $port --access >/dev/null 2>&1 &
else
$path/baidupcs web --port $port --access >/dev/null 2>&1 &

View File

@ -14,6 +14,7 @@ start() {
[ "$enabled" == "1" ] || return
if [ ! -f "$path/filebrowser" ];then
mkdir -p $path
wget -O $path/filebrowser https://mirror.router.ctcgfw.generalcdn.top/download/mipsle/filebrowser && cd $path && ./filebrowser --port $port --scope $scope >/dev/null 2>&1 &
else
cd $path && ./filebrowser --port $port --scope $scope >/dev/null 2>&1 &