mirror of
https://github.com/monlor/MIXBOX-ARCHIVE.git
synced 2026-03-10 23:41:27 +00:00
更新frpc,添加aliyundrivefuse插件
This commit is contained in:
BIN
apps/aliyundrivefuse/bin/aliyundrivefuse_linux_aarch64
Executable file
BIN
apps/aliyundrivefuse/bin/aliyundrivefuse_linux_aarch64
Executable file
Binary file not shown.
BIN
apps/aliyundrivefuse/bin/aliyundrivefuse_linux_arm
Executable file
BIN
apps/aliyundrivefuse/bin/aliyundrivefuse_linux_arm
Executable file
Binary file not shown.
8
apps/aliyundrivefuse/config/aliyundrivefuse.uci
Normal file
8
apps/aliyundrivefuse/config/aliyundrivefuse.uci
Normal file
@@ -0,0 +1,8 @@
|
||||
service="AliyunDriveFuse"
|
||||
appname="aliyundrivefuse"
|
||||
needver="0.0.1"
|
||||
backupfiles=""
|
||||
supports="linux_aarch64,linux_arm"
|
||||
appinfo="阿里云盘 FUSE 磁盘挂载"
|
||||
newinfo=""
|
||||
version="0.0.1"
|
||||
68
apps/aliyundrivefuse/scripts/aliyundrivefuse.sh
Normal file
68
apps/aliyundrivefuse/scripts/aliyundrivefuse.sh
Normal file
@@ -0,0 +1,68 @@
|
||||
#!/bin/sh
|
||||
#copyright by monlor
|
||||
eval `mbdb export aliyundrivefuse`
|
||||
source "$(mbdb get mixbox.main.path)"/bin/base
|
||||
port=""
|
||||
|
||||
start() {
|
||||
|
||||
[ -n "$(pidof ${appname})" ] && logsh "【$service】" "${appname}已经在运行!" && exit 1
|
||||
logsh "【$service】" "正在启动${appname}服务... "
|
||||
# cru a "${appname}" "0 6 * * * ${mbroot}/apps/${appname}/scripts/${appname}.sh restart"
|
||||
# Scripts Here
|
||||
|
||||
# open_port
|
||||
# write_firewall_start
|
||||
daemon ${mbroot}/apps/${appname}/bin/${appname} -r "${refresh_token}" "${mount_path}" --allow-other
|
||||
if [ $? -ne 0 ]; then
|
||||
logsh "【$service】" "启动${appname}服务失败!" && end
|
||||
else
|
||||
logsh "【$service】" "启动${appname}服务完成!"
|
||||
# logsh "【$service】" "请在浏览器打开地址:http://$lanip:$port"
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
stop() {
|
||||
|
||||
logsh "【$service】" "正在停止${appname}服务... "
|
||||
[ "$enable" == '0' ] && destroy
|
||||
# close_port
|
||||
# remove_firewall_start
|
||||
killall -9 ${appname} &> /dev/null
|
||||
|
||||
}
|
||||
|
||||
destroy() {
|
||||
|
||||
# End app, Scripts here
|
||||
# cru d "${appname}"
|
||||
return
|
||||
|
||||
}
|
||||
|
||||
end() {
|
||||
|
||||
mbdb set ${appname}.main.enable=0
|
||||
stop && exit 1
|
||||
|
||||
}
|
||||
|
||||
status() {
|
||||
|
||||
if [ -n "$(pidof ${appname})" ]; then
|
||||
status="运行中|1"
|
||||
else
|
||||
status="未运行|0"
|
||||
fi
|
||||
mbdb set ${appname}.main.status="$status"
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start) start ;;
|
||||
stop) stop ;;
|
||||
restart) stop; start ;;
|
||||
reload) close_port && open_port ;;
|
||||
status) status ;;
|
||||
esac
|
||||
|
||||
22
apps/aliyundrivefuse/scripts/config.sh
Normal file
22
apps/aliyundrivefuse/scripts/config.sh
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
#copyright by monlor
|
||||
|
||||
eval `mbdb export aliyundrivefuse`
|
||||
source "$(mbdb get mixbox.main.path)"/bin/base
|
||||
echo "********* $service ***********"
|
||||
echo "[${appinfo}]"
|
||||
readsh "启动${appname}服务[1/0] " "enable" "1"
|
||||
if [ "$enable" == '1' ]; then
|
||||
# Scripts Here
|
||||
echo "获取refresh token:https://pic.monlor.com/images/2022/04/25/5ab434eaa61647ab88576e21e96a4cc0.png"
|
||||
readsh "请输入${appname}的refresh-token" "refresh_token"
|
||||
readsh "请输入${appname}的挂载路径" "mount_path"
|
||||
if [ ! -d "${mount_path}" ]; then
|
||||
readsh "路径${mount_path}不存在!是否创建" "res" "1"
|
||||
mkdir -p "${mount_path}"
|
||||
fi
|
||||
# readsh "请输入${appname}外网访问配置[1/0]" "openport" "0"
|
||||
readsh "重启${appname}服务[1/0]" "res" "1"
|
||||
[ "$res" != '0' ] && exit 0
|
||||
fi
|
||||
exit 1
|
||||
BIN
apps/frpc/bin/frpc_linux_aarch64
Normal file → Executable file
BIN
apps/frpc/bin/frpc_linux_aarch64
Normal file → Executable file
Binary file not shown.
BIN
apps/frpc/bin/frpc_linux_arm
Normal file → Executable file
BIN
apps/frpc/bin/frpc_linux_arm
Normal file → Executable file
Binary file not shown.
BIN
apps/frpc/bin/frpc_linux_mips
Normal file → Executable file
BIN
apps/frpc/bin/frpc_linux_mips
Normal file → Executable file
Binary file not shown.
@@ -3,5 +3,5 @@ appname="frpc"
|
||||
needver="0.0.1"
|
||||
supports="linux_aarch64,linux_arm,linux_mips,linux_x86_64,darwin_x86_64"
|
||||
appinfo="内网穿透工具,相对于ngrok资源占用较多"
|
||||
newinfo="修复自定义域名配置错误"
|
||||
version="0.0.5"
|
||||
newinfo="更新程序到0.42.0"
|
||||
version="0.0.6"
|
||||
|
||||
Reference in New Issue
Block a user