|
|
@ -2,11 +2,7 @@ _download_caddy_file() { |
|
|
|
caddy_tmp="/tmp/install_caddy/" |
|
|
|
caddy_tmp="/tmp/install_caddy/" |
|
|
|
caddy_tmp_file="/tmp/install_caddy/caddy.tar.gz" |
|
|
|
caddy_tmp_file="/tmp/install_caddy/caddy.tar.gz" |
|
|
|
[[ -d $caddy_tmp ]] && rm -rf $caddy_tmp |
|
|
|
[[ -d $caddy_tmp ]] && rm -rf $caddy_tmp |
|
|
|
if [[ $sys_bit == "i386" || $sys_bit == "i686" ]]; then |
|
|
|
local caddy_download_link="https://caddyserver.com/download/linux/${caddy_arch}?license=personal" |
|
|
|
local caddy_download_link="https://caddyserver.com/download/linux/386?license=personal" |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
local caddy_download_link="https://caddyserver.com/download/linux/amd64?license=personal" |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mkdir -p $caddy_tmp |
|
|
|
mkdir -p $caddy_tmp |
|
|
|
|
|
|
|
|
|
|
|