The official compose bundle stores uploads in Docker volumes and expects a proxy on loopback, which does not fit Unraid docker.img or a containerized reverse proxy.
23 lines
800 B
Bash
23 lines
800 B
Bash
#!/usr/bin/env bash
|
|
# Re-download the official Fluxer compose bundle and recreate containers.
|
|
# Keeps stack/.env and the data directories. Make a backup first.
|
|
set -euo pipefail
|
|
|
|
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
|
STACK="${FLUXER_STACK:-$ROOT/stack}"
|
|
|
|
if [[ ! -f "$STACK/.env" ]]; then
|
|
echo "No $STACK/.env yet. Run scripts/prepare-unraid.sh first." >&2
|
|
exit 1
|
|
fi
|
|
|
|
DOMAIN="$(awk -F= '$1=="FLUXER_DOMAIN" { print substr($0, index($0, "=") + 1); exit }' "$STACK/.env")"
|
|
if [[ -z "$DOMAIN" ]]; then
|
|
echo "FLUXER_DOMAIN is empty in $STACK/.env" >&2
|
|
exit 1
|
|
fi
|
|
|
|
echo "Updating the bundle for $DOMAIN. Existing .env choices are left in place."
|
|
echo "Stop here and run scripts/backup-unraid.sh first if you have not backed up."
|
|
exec sh "$ROOT/scripts/prepare-unraid.sh" "$DOMAIN" --update "$@"
|