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

This commit is contained in:
Matthias Schiffer 2017-08-08 13:49:25 +02:00
parent 57adb49de2
commit 1d6e6726d7
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C
1 changed files with 3 additions and 3 deletions

View File

@ -1,10 +1,10 @@
#!/usr/bin/lua
local site = require 'gluon.site_config'
local site = require 'gluon.site'
local uci = require('simple-uci').cursor()
local dns = site.dns or {}
local next_node = site.next_node or {}
local dns = site.dns({})
local next_node = site.next_node({})
local dnsmasq = uci:get_first("dhcp", "dnsmasq")