fix jq install; dns check

This commit is contained in:
233boy
2023-08-07 12:24:23 +08:00
parent 67387eb0a1
commit 83d1e045a9
8 changed files with 65 additions and 16 deletions

View File

@@ -51,6 +51,10 @@ download() {
# https://github.com/caddyserver/caddy/releases/download/v2.6.4/caddy_2.6.4_linux_amd64.tar.gz
link="https://github.com/${is_caddy_repo}/releases/download/${latest_ver}/caddy_${latest_ver:1}_linux_${caddy_arch}.tar.gz"
download_file
[[ ! $(type -P tar) ]] && {
rm -rf $tmpdir
err "请安装 tar"
}
tar zxf $tmpfile -C $tmpdir
cp -f $tmpdir/caddy $is_caddy_bin
chmod +x $is_caddy_bin