mirror of
https://github.com/monlor/MIXBOX-ARCHIVE.git
synced 2026-03-10 23:41:27 +00:00
2020-06-24 20:42:49
This commit is contained in:
@@ -4,4 +4,4 @@ needver="0.0.1"
|
||||
supports="linux_aarch64,linux_arm,linux_mips,linux_x86_64,darwin_x86_64"
|
||||
appinfo="动态将你的路由器IP绑定到域名"
|
||||
newinfo="支持ipv6,修复bug"
|
||||
version="0.0.4"
|
||||
version="0.0.5"
|
||||
|
||||
@@ -13,10 +13,12 @@ start() {
|
||||
[ -z "$time" ] && time=10
|
||||
|
||||
cru a "${appname}" "*/$time * * * * ${mbroot}/apps/${appname}/scripts/${appname}.sh restart"
|
||||
if [ "${ipv6}" = '1' ]; then
|
||||
if [ "${type}" = '1' -o "${type}" = '2' ]; then
|
||||
daemon ${mbroot}/apps/${appname}/bin/${appname} --id "$app_key" --secret "$app_secret" auto-update -6 --domain "$domain"
|
||||
fi
|
||||
daemon ${mbroot}/apps/${appname}/bin/${appname} --id "$app_key" --secret "$app_secret" auto-update --domain "$domain"
|
||||
if [ "${type}" = '0' -o "${type}" = '2' ]; then
|
||||
daemon ${mbroot}/apps/${appname}/bin/${appname} --id "$app_key" --secret "$app_secret" auto-update --domain "$domain"
|
||||
fi
|
||||
if [ $? -ne 0 ]; then
|
||||
logsh "【$service】" "启动${appname}服务失败!"
|
||||
else
|
||||
|
||||
@@ -16,7 +16,7 @@ if [ "$enable" == '1' ]; then
|
||||
readsh "请输入${appname}域名[例如@.mixbox.com或www.mixbox.com]" "domain"
|
||||
readsh "请输入${appname}检查分钟间隔(建议10)" "time" "10"
|
||||
fi
|
||||
readsh "启用ipv6支持[1/0]" "ipv6" "0"
|
||||
readsh "支持类型[0仅ipv4/1仅ipv6/2通吃]" "type" "0"
|
||||
|
||||
readsh "重启${appname}服务[1/0]" "res" "1"
|
||||
[ "$res" != '0' ] && exit 0
|
||||
|
||||
Reference in New Issue
Block a user