chore: initial release v0.8.2

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2025-07-17 21:23:35 +02:00
commit 94f5803141
31 changed files with 645 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
declare -a args
# Network: bind to all interfaces, allow all connections
args+=(--http-addresses "0.0.0.0:7396")
args+=(--allow "0/0")
# FAH account credentials
FAH_USER=$(bashio::config 'user')
TEAM=$(bashio::config 'team')
PASSKEY=$(bashio::config 'passkey')
ACCOUNT_TOKEN=$(bashio::config 'account_token')
MACHINE_NAME=$(bashio::config 'machine_name')
if bashio::config.has_value 'user'; then
args+=(--user "${FAH_USER}")
fi
if bashio::config.has_value 'team'; then
args+=(--team "${TEAM}")
fi
if bashio::config.has_value 'passkey'; then
args+=(--passkey "${PASSKEY}")
fi
if bashio::config.has_value 'account_token'; then
args+=(--account-token "${ACCOUNT_TOKEN}")
if bashio::config.has_value 'machine_name'; then
args+=(--machine-name "${MACHINE_NAME}")
fi
fi
if ! bashio::config.has_value 'user' && ! bashio::config.has_value 'account_token'; then
bashio::log.info "No user or account_token set — folding anonymously."
fi
# Run from /config so fah-client stores its data there
mkdir -p /config
cd /config || exit 1
exec /app/fah-client "${args[@]}"