mirror of
https://github.com/monlor/MIXBOX-ARCHIVE.git
synced 2026-03-14 17:31:35 +00:00
2018-12-31
This commit is contained in:
8
apps/baidupcs/config/baidupcs.uci
Normal file
8
apps/baidupcs/config/baidupcs.uci
Normal file
@@ -0,0 +1,8 @@
|
||||
service="BaiduPCS"
|
||||
appname="baidupcs"
|
||||
needver="0.0.1"
|
||||
backupfiles=""
|
||||
supports="linux_arm,linux_mips,linux_x86_64,darwin_x86_64"
|
||||
appinfo="第三方百度网盘web客户端,基于Go语言"
|
||||
newinfo=""
|
||||
version="0.0.2"
|
||||
20
apps/baidupcs/config/mixbox.conf
Normal file
20
apps/baidupcs/config/mixbox.conf
Normal file
@@ -0,0 +1,20 @@
|
||||
#------------------【BaiduPCS】--------------------
|
||||
baidupcs() {
|
||||
|
||||
eval `mbdb export baidupcs`
|
||||
source "$(mbdb get mixbox.main.path)"/bin/base
|
||||
echo "********* $service ***********"
|
||||
echo "[${appinfo}]"
|
||||
readsh "启动${appname}服务[1/0] " "enable" "1"
|
||||
if [ "$enable" == '1' ]; then
|
||||
# Scripts Here
|
||||
# readsh "请输入${appname}端口号" "port" "5299"
|
||||
readsh "请输入${appname}外网访问配置[1/0]" "openport" "0"
|
||||
readsh "重启${appname}服务[1/0] " "res" "1"
|
||||
[ "$res" = '1' -o -z "$res" ] && ${mbroot}/apps/${appname}/scripts/${appname}.sh restart
|
||||
else
|
||||
${mbroot}/apps/${appname}/scripts/${appname}.sh stop
|
||||
fi
|
||||
|
||||
}
|
||||
#------------------【BaiduPCS】--------------------
|
||||
Reference in New Issue
Block a user