LibrePortal/containers/gluetun/tools/gluetun_refresh_providers.sh
librelad 8670a02c00 refactor(gluetun): collapse to one function name for the refresh hook
Drop the appWebuiRefresh_gluetun -> webuiGenerateGluetunProviders wrapper; rename
the function itself to appWebuiRefresh_gluetun and point the installer + the
gluetun_refresh_providers tool at it. One name, no indirection.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Signed-off-by: librelad <librelad@digitalangels.vip>
2026-05-25 23:48:47 +01:00

17 lines
511 B
Bash

#!/bin/bash
# Tools-tab entry — invoked by `libreportal app tool gluetun providers_refresh`.
# Resolved by dockerAppRunTool: tool id `providers_refresh` →
# function `appGluetunRefreshProviders`.
#
# Re-fetches gluetun's upstream servers.json and rewrites the WebUI
# provider snapshot used by the country picker.
appGluetunRefreshProviders()
{
local tool_args="$1"
isNotice "Refreshing Gluetun provider snapshot..."
appWebuiRefresh_gluetun
isSuccessful "Provider snapshot regenerated."
}