summaryrefslogtreecommitdiff
path: root/caddy/entrypoint.sh
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-04-12 14:08:34 -0400
committerFreya Murphy <freya@freyacat.org>2025-04-12 14:08:34 -0400
commit19ff6e513cc71516f587ca76d5bcde3cfed3e9c6 (patch)
tree2dfeb69ed87eba8aa4f1eac13372004ab496c6f0 /caddy/entrypoint.sh
parentupdate minecraft image (diff)
downloadimages-19ff6e513cc71516f587ca76d5bcde3cfed3e9c6.tar.gz
images-19ff6e513cc71516f587ca76d5bcde3cfed3e9c6.tar.bz2
images-19ff6e513cc71516f587ca76d5bcde3cfed3e9c6.zip
update build scripts
Diffstat (limited to 'caddy/entrypoint.sh')
-rw-r--r--caddy/entrypoint.sh21
1 files changed, 20 insertions, 1 deletions
diff --git a/caddy/entrypoint.sh b/caddy/entrypoint.sh
index d8c4fc4..f44803a 100644
--- a/caddy/entrypoint.sh
+++ b/caddy/entrypoint.sh
@@ -1,6 +1,25 @@
#!/bin/sh
-URL="https://caddyserver.com/api/download?os=linux&arch=amd64"
+case "$(uname -m)" in
+ "x86_64")
+ ARCH="&arch=amd64"
+ ;;
+ "aarch64")
+ ARCH="&arch=arm64"
+ ;;
+ "armv6")
+ ARCH="&arch=arm&arm=6"
+ ;;
+ "armv7")
+ ARCH="&arch=arm&arm=7"
+ ;;
+ *)
+ echo "invalid arch: $(uname -m)"
+ exit 1
+ ;;
+esac
+
+URL="https://caddyserver.com/api/download?os=linux$ARCH"
IFS=" "
for module in $MODULES
do