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

Linux的update.sh更新建议 #12

Open
mikal opened this issue Jul 15, 2024 · 0 comments
Open

Linux的update.sh更新建议 #12

mikal opened this issue Jul 15, 2024 · 0 comments

Comments

@mikal
Copy link

mikal commented Jul 15, 2024

因为将update.sh脚本运行于Padavan的老毛子固件上,base64的参数不适用,建议做如下更新,以扩展其运行的普适性。
第11行
BASE64_TEXT=$(head -n 65 "$FILENAME" | base64 | tr -d '\n')
第12行,鉴于某些地区的网络条件,增加重复次数确保成功率
curl -kv "https://$DOMAIN/$FILENAME?token=$TOKEN&b64=$BASE64_TEXT" --connect-timeout 3 --max-time 3 --retry 3 --retry-delay 5

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

1 participant