Close to a fully working package

This commit is contained in:
Matt Jadud
2025-12-07 16:40:45 -05:00
parent 9f25c1cb09
commit 696b73fce6
7 changed files with 70 additions and 83 deletions

View File

@@ -18,10 +18,8 @@ if [[ ! -f /app/data/.initialized ]]; then
# Note: it templates in the domain, which needs to be substituted at this point.
# If the end-user moves the domain... this will break.
sed -e 's/CLOUDRON_APP_DOMAIN/'"${CLOUDRON_APP_DOMAIN}"'/g' /garage/garage.toml > /app/data/garage.toml
cp /garage/caddyfile /app/data/caddyfile
# For redirecting /health to admin.DOMAIN/health
sed -e 's/CLOUDRON_APP_DOMAIN/'"${CLOUDRON_APP_DOMAIN}"'/g' /garage/caddyfile > /app/data/caddyfile
# Generate an RPC secret file. This is used for clusters.
# We don't have clusters, but garage wantses it.
# It is precious to garage.
@@ -34,5 +32,5 @@ fi
# Chown the things and run.
chown -R cloudron:cloudron /app/data/garage
# gosu cloudron:cloudron caddy run --config /app/data/caddyfile --adapter caddyfile &
gosu cloudron:cloudron caddy run --watch --config /app/data/caddyfile --adapter caddyfile &
gosu cloudron:cloudron /usr/bin/garage server