Close to a fully working package
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user