lua rewrite
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
-- Reads /etc/hostname and returns the first line
|
||||
|
||||
local util = require("modules/util")
|
||||
|
||||
return { hostname = os.getenv("HOSTNAME") or util.cat_first_line("/etc/hostname") }
|
||||
Reference in New Issue
Block a user