Skip to content

Commit

Permalink
Use Caddy 2.3.0
Browse files Browse the repository at this point in the history
Code changes to streamline use of the latest Caddy version.
  • Loading branch information
basilhendroff committed Jan 1, 2021
1 parent 6549c01 commit 9feaf26
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions wordpress-jail.sh
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,10 @@ iocage fstab -a "${JAIL_NAME}" "${INCLUDES_PATH}" /mnt/includes nullfs rw 0 0
#####################################################################
print_msg "Caddy download..."

FILE="caddy_2.2.1_freebsd_amd64.tar.gz"
if ! iocage exec "${JAIL_NAME}" fetch -o /tmp https://github.com/caddyserver/caddy/releases/latest/download/"${FILE}"
CADDY_VERSION="2.3.0"

FILE="caddy_${CADDY_VERSION}_freebsd_amd64.tar.gz"
if ! iocage exec "${JAIL_NAME}" fetch -o /tmp https://github.com/caddyserver/caddy/releases/download/v"${CADDY_VERSION}"/"${FILE}"
then
print_err "Failed to download Caddy"
exit 1
Expand Down

0 comments on commit 9feaf26

Please sign in to comment.