Files
Fluxer-selfhost-unraid/scripts/update-unraid.sh
T
Michael Sloan 1f6c4c0c39 Add an Unraid installer for a self-hosted Fluxer instance.
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.
2026-11-23 21:41:31 -05:00

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 "$@"