A free, open, self-hosted app platform (GNU AGPLv3): one-click app deploys, Traefik reverse proxy with automatic SSL, rootless Docker support, gluetun VPN routing, and a web dashboard to manage it all. Free & open forever to self-host; optional paid hosted services fund it. See PROMISE.md. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> Signed-off-by: librelad <librelad@digitalangels.vip>
20 lines
483 B
Bash
20 lines
483 B
Bash
#!/bin/bash
|
|
|
|
migrateDiscoverHosts()
|
|
{
|
|
local idx="$1"
|
|
[[ -z "$idx" ]] && idx=$(resticEnabledLocations | head -1)
|
|
[[ -z "$idx" ]] && return 1
|
|
|
|
engineSnapshotsJson "$idx" | grep -o '"hostname":"[^"]*"' | sort -u | cut -d'"' -f4
|
|
}
|
|
|
|
migrateDiscoverAppsForHost()
|
|
{
|
|
local idx="$1"
|
|
local host="$2"
|
|
[[ -z "$idx" ]] && idx=$(resticEnabledLocations | head -1)
|
|
|
|
engineSnapshotsJson "$idx" "" "$host" | grep -o '"app=[^"]*"' | sort -u | sed 's/"app=\(.*\)"/\1/'
|
|
}
|