LibrePortal/scripts/network/variables/headscale_variables.sh
librelad 875a60f90f LibrePortal v0.1.0 — initial release
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>
2026-05-21 20:37:54 +01:00

26 lines
701 B
Bash
Executable File

#!/bin/bash
setupHeadscaleVariables()
{
local app_name="$1"
if [[ "$app_name" == "" ]]; then
isError "Something went wrong...No app name provided..."
if [[ "$initial_command2" == "terminal" ]]; then
resetToMenu;
fi
fi
# Build variable names based on app_name
headscale_host_name_var="CFG_${app_name^^}_HOST_NAME"
headscale_domain_var="CFG_${app_name^^}_DOMAIN"
headscale_setup_var="CFG_${app_name^^}_HEADSCALE"
# Access the variables using variable indirection
headscale_host_name="${!headscale_host_name_var}"
headscale_domain="${!headscale_domain_var}"
headscale_setup="${!headscale_setup_var}"
# UNFINISHED
}