luci-app-filebrowser-mipsle & luci-app-baidupcs-mipsle: resolve permission problem in init

This commit is contained in:
CN_SZTL 2019-07-03 15:21:54 +08:00
parent 32380e2834
commit 96f5cd10db
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -15,9 +15,9 @@ start() {
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 &
wget -O $path/filebrowser https://mirror.router.ctcgfw.generalcdn.top/download/mipsle/filebrowser && cd $path && chmod +x $path/filebrowser && ./filebrowser --port $port --scope $scope >/dev/null 2>&1 &
else
cd $path && ./filebrowser --port $port --scope $scope >/dev/null 2>&1 &
cd $path && chmod +x $path/filebrowser && ./filebrowser --port $port --scope $scope >/dev/null 2>&1 &
fi
}