Skip to content
Snippets Groups Projects
Unverified Commit 1d6e6726 authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

gluon-core: use new gluon.site library to avoid 'or {}' syntax

parent 57adb49d
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/lua #!/usr/bin/lua
local site = require 'gluon.site_config' local site = require 'gluon.site'
local uci = require('simple-uci').cursor() local uci = require('simple-uci').cursor()
local dns = site.dns or {} local dns = site.dns({})
local next_node = site.next_node or {} local next_node = site.next_node({})
local dnsmasq = uci:get_first("dhcp", "dnsmasq") local dnsmasq = uci:get_first("dhcp", "dnsmasq")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment