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>
17 lines
511 B
Bash
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."
|
|
}
|