mirror of
https://github.com/monlor/MIXBOX-ARCHIVE.git
synced 2026-03-10 23:41:27 +00:00
更新aliddns,支持ipv6
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -3,5 +3,5 @@ appname="aliddns"
|
||||
needver="0.0.1"
|
||||
supports="linux_aarch64,linux_arm,linux_mips,linux_x86_64,darwin_x86_64"
|
||||
appinfo="动态将你的路由器IP绑定到域名"
|
||||
newinfo="支持ipv6"
|
||||
version="0.0.3"
|
||||
newinfo="支持ipv6,修复bug"
|
||||
version="0.0.4"
|
||||
|
||||
@@ -7,7 +7,6 @@ start() {
|
||||
# [ -n "$(pidof ${appname})" ] && logsh "【$service】" "${appname}已经在运行!" && exit 1
|
||||
logsh "【$service】" "正在启动${appname}服务... "
|
||||
# Scripts Here
|
||||
local extra_cmd=""
|
||||
# open_port
|
||||
# write_firewall_start
|
||||
[ -z "$app_key" -o -z "$app_secret" -o -z "$domain" ] && logsh "【$service】" "访问ID或密钥或域名为空!" && exit 1
|
||||
@@ -15,9 +14,9 @@ start() {
|
||||
|
||||
cru a "${appname}" "*/$time * * * * ${mbroot}/apps/${appname}/scripts/${appname}.sh restart"
|
||||
if [ "${ipv6}" = '1' ]; then
|
||||
extra_cmd="&& ${mbroot}/apps/${appname}/bin/${appname} --id "$app_key" --secret "$app_secret" auto-update -6 --domain "$domain""
|
||||
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" ${extra_cmd}
|
||||
daemon ${mbroot}/apps/${appname}/bin/${appname} --id "$app_key" --secret "$app_secret" auto-update --domain "$domain"
|
||||
if [ $? -ne 0 ]; then
|
||||
logsh "【$service】" "启动${appname}服务失败!"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user