Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

换成start.sh后其它都正常,但cf上有2个ip需要更新,第一个ip总是更新失败,第二个ip更新成功是什么原因? #37

Open
rui313 opened this issue Sep 12, 2023 · 3 comments

Comments

@rui313
Copy link

rui313 commented Sep 12, 2023

No description provided.

@rui313
Copy link
Author

rui313 commented Sep 12, 2023

还会提示 sleep: invalid number 's',请问改哪里?会影响排名第一的ip更新么?

@rui313 rui313 closed this as completed Sep 12, 2023
@rui313 rui313 reopened this Sep 12, 2023
@lee1080
Copy link
Owner

lee1080 commented Sep 25, 2023

配置文件中的变量,$sleepTime ,只需要填写数字,不需要加s

#判断是否重启科学服务
if [ "$pause" = "false" ] ; then
  echo "按要求未重启科学上网服务";
  sleep 3s;
else
  /etc/init.d/$CLIEN restart;
  echo "已重启$CLIEN";
  echo "等待${sleepTime}秒后开始更新DNS!"
  sleep ${sleepTime}s;
fi

@lee1080
Copy link
Owner

lee1080 commented Sep 25, 2023

排名第一更新失败,可以尝试在cloudflare中将对应的域名删除后,让脚本重新创建。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants