Skip to content

Commit

Permalink
add autoupdater and mesh-vpn status to gluon-info
Browse files Browse the repository at this point in the history
  • Loading branch information
maurerle committed Dec 30, 2024
1 parent c31c7d7 commit 1073d62
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions package/gluon-core/luasrc/usr/lib/lua/gluon/info.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ end
local M = {}

function M.get_info()
updater_enabled = uci:get_bool('autoupdater', 'settings', 'enabled')
return {
hostname = pretty_hostname.get(uci),
mac_address = sysconfig.primary_mac,
Expand All @@ -31,6 +32,9 @@ function M.get_info()
domain = uci:get('gluon', 'core', 'domain'),
public_vpn_key = pubkey,
switch_type = ethernet.get_switch_type(),
updater_branch = updater_enabled and uci:get('autoupdater', 'settings', 'branch') or "disabled",
mesh_vpn_status = uci:get_bool('gluon', 'mesh_vpn', 'enabled')

}
end

Expand All @@ -47,6 +51,8 @@ function M.get_info_pretty(_)
{ _('Domain'), data.domain or 'n/a' },
{ _('Public VPN key'), data.public_vpn_key or 'n/a' },
{ _('Switch type'), data.switch_type },
{ _('Autoupdater branch'), data.updater_branch },
{ _('Mesh VPN status'), data.mesh_vpn_status },
}
end

Expand Down
3 changes: 3 additions & 0 deletions package/gluon-web-admin/i18n/de.po
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ msgstr "Passwort gelöscht."
msgid "Public VPN key"
msgstr "Öffentlicher VPN-Schlüssel"

msgid "Autoupdater branch"
msgstr "Autoupdate-Kanal"

msgid "Domain"
msgstr "Domäne"

Expand Down

0 comments on commit 1073d62

Please sign in to comment.