Update caddy-jail.sh

Refer to https://caddy.community/t/building-from-source-with-cloudflare-plugin-not-working/9383. This workaround may need to be reverse later.
master
Basil Hendroff 2020-08-10 19:48:47 +08:00 committed by GitHub
parent 2a2459870f
commit 0a27dfa754
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ then
exit 1
fi
if [ -n "${DNS_PLUGIN}" ]; then
if ! iocage exec "${JAIL_NAME}" xcaddy build --output /usr/local/bin/caddy --with github.com/caddy-dns/"${DNS_PLUGIN}"
if ! iocage exec "${JAIL_NAME}" xcaddy build master --output /usr/local/bin/caddy --with github.com/caddy-dns/"${DNS_PLUGIN}"
then
echo "Failed to build Caddy with ${DNS_PLUGIN} plugin, terminating."
exit 1