Skip to content

Commit

Permalink
docs: update download links
Browse files Browse the repository at this point in the history
  • Loading branch information
greenpau committed Jan 22, 2022
1 parent cc0d0be commit c084759
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ The configuration happens in `Caddyfile`'s
* **Customizing Caddy Auth Portal UI**: [Video](https://www.youtube.com/watch?v=20XOn-RBIX0&t=0s)

Download Caddy with the plugins enabled:
* <a href="https://caddyserver.com/api/download?os=windows&arch=amd64&p=github.com%2Fgreenpau%2Fcaddy-security%40v1.0.2&p=github.com%2Fgreenpau%2Fcaddy-trace%40&p=%40" target="_blank">windows/amd64</a>
* <a href="https://caddyserver.com/api/download?os=linux&arch=amd64&p=github.com%2Fgreenpau%2Fcaddy-security%40v1.0.2&p=github.com%2Fgreenpau%2Fcaddy-trace%40&p=%40" target="_blank">linux/amd64</a>
* <a href="https://caddyserver.com/api/download?os=windows&arch=amd64&p=github.com%2Fgreenpau%2Fcaddy-security%40v1.0.2&p=github.com%2Fgreenpau%2Fcaddy-trace%40" target="_blank">windows/amd64</a>
* <a href="https://caddyserver.com/api/download?os=linux&arch=amd64&p=github.com%2Fgreenpau%2Fcaddy-security%40v1.0.2&p=github.com%2Fgreenpau%2Fcaddy-trace%40" target="_blank">linux/amd64</a>

### Credentials

Expand Down
2 changes: 1 addition & 1 deletion assets/scripts/generate_downloads.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ for OS_ID in "${!_TARGET_OS[@]}"; do
OS_NAME=${_TARGET_OS[$OS_ID]};
for ARCH_ID in "${!_TARGET_ARCH[@]}"; do
ARCH_NAME=${_TARGET_ARCH[$ARCH_ID]};
HREF="https://caddyserver.com/api/download?os=${OS_NAME}&arch=${ARCH_NAME}&p=${P1}%40${V1}&p=${P2}%40${V2}&p=${P3}%40${V3}";
HREF="https://caddyserver.com/api/download?os=${OS_NAME}&arch=${ARCH_NAME}&p=${P1}%40${V1}&p=${P2}%40${V2}";
HREF_LINK="* <a href=\"${HREF}\" target=\"_blank\">${OS_NAME}/${ARCH_NAME}</a>";
sed -i ''"${DLOAD_LINE}"' i '"${HREF_LINK}"'' README.md
done
Expand Down

0 comments on commit c084759

Please sign in to comment.