gluon-web-admin: remove pubkey empty string workarround

Co-Authored-By: Matthias Schiffer <mschiffer@universe-factory.net>
This commit is contained in:
Maciej Krüger 2022-01-12 01:33:28 +01:00
parent 816d2796be
commit 08a8ef0bcd
No known key found for this signature in database
GPG Key ID: 0D948CE19CF49C5F

View File

@ -18,17 +18,13 @@
if active_vpn ~= nil then
pubkey = active_vpn.public_key()
end
if pubkey == '' then
pubkey = nil
end
end
local values = {
{ _('Hostname'), pretty_hostname.get(uci) },
{ _('MAC address'), sysconfig.primary_mac },
{ _('Hardware model'), platform.get_model() },
{ _('Gluon version') .. " / " .. _('Site version'), util.trim(util.readfile('/lib/gluon/gluon-version'))
{ _('Gluon version') .. " / " .. _('Site version'), util.trim(util.readfile('/lib/gluon/gluon-version'))
.. " / " .. util.trim(util.readfile('/lib/gluon/site-version')) },
{ _('Firmware release'), util.trim(util.readfile('/lib/gluon/release')) },
{ _('Site'), site.site_name() },