2018-12-31

This commit is contained in:
monlor
2018-12-31 23:47:47 +08:00
commit 3ae56f5e6e
1091 changed files with 173538 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
service="AliDDNS"
appname="aliddns"
needver="0.0.1"
supports="linux_arm,linux_mips,linux_x86_64,darwin_x86_64"
appinfo="动态将你的路由器IP绑定到域名"
newinfo=""
version="0.0.2"

View File

@@ -0,0 +1,28 @@
#------------------【AliDDNS】--------------------
aliddns() {
eval `mbdb export aliddns`
source /etc/mixbox/bin/base
echo "********* $service ***********"
echo "[${appinfo}]"
readsh "启动${appname}服务[1/0] " "enable" "1"
if [ "$enable" == '1' ]; then
# Scripts Here
read -p "修改${appname}配置?[1/0] " res
if [ "$res" = '1' ]; then
readsh "请输入${appname}访问ID" "app_key"
readsh "请输入${appname}访问密钥" "app_secret"
readsh "请输入${appname}域名[例如@.mixbox.com或www.mixbox.com]" "domain"
readsh "请输入${appname}检查分钟间隔(建议10)" "time" "10"
fi
# read -p "更新DNS前先清除旧的DNS记录(默认不清除)[1/0] " res
# mbdb set $appname.main.clean="$res"
${mbroot}/apps/${appname}/scripts/${appname}.sh restart
else
${mbroot}/apps/${appname}/scripts/${appname}.sh stop
fi
}
#------------------【AliDDNS】--------------------

View File

@@ -0,0 +1 @@
1.0.5