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>
19 lines
589 B
Bash
19 lines
589 B
Bash
#!/bin/bash
|
|
|
|
# Source every per-location location.config file so the CFG_BACKUP_LOC_<idx>_*
|
|
# variables are available in the env. Called from the libreportal_configs
|
|
# scan path (see scripts/source/loading/scan_files.sh) so it runs at the
|
|
# same time as the rest of the config files.
|
|
|
|
sourceBackupLocations()
|
|
{
|
|
local dir
|
|
dir=$(backupLocationsDir)
|
|
[[ ! -d "$dir" ]] && return 0
|
|
|
|
local cfg
|
|
while IFS= read -r -d '' cfg; do
|
|
[[ -f "$cfg" ]] && source "$cfg"
|
|
done < <(sudo find "$dir" -mindepth 2 -maxdepth 2 -name location.config -type f -print0 2>/dev/null)
|
|
}
|