Merge pull request #108 from FreifunkBremen/empty-hostname-prefix
Allow empty hostname prefix
This commit is contained in:
commit
a569856ca6
|
@ -1,7 +1,7 @@
|
|||
need_string 'site_code'
|
||||
need_string 'site_name'
|
||||
|
||||
need_string 'hostname_prefix'
|
||||
need_string('hostname_prefix', false)
|
||||
need_string 'timezone'
|
||||
|
||||
need_string_array('ntp_servers', false)
|
||||
|
|
|
@ -10,7 +10,7 @@ if not sysconfig.gluon_version then
|
|||
|
||||
local system = uci:get_first('system', 'system')
|
||||
|
||||
uci:set('system', system, 'hostname', site.hostname_prefix .. '-' .. util.node_id())
|
||||
uci:set('system', system, 'hostname', (site.hostname_prefix or '') .. util.node_id())
|
||||
uci:set('system', system, 'timezone', site.timezone)
|
||||
|
||||
uci:save('system')
|
||||
|
|
Loading…
Reference in New Issue