Fixes a gen-config issue related to non-runnables.

This commit is contained in:
Luka Vandervelden 2020-01-04 15:22:34 +01:00
parent 9c84fe7368
commit 0572fc1647

View File

@ -20,12 +20,14 @@ class Service
entry["domain"] = domain
entry["ports"] = ports
if !non_runnable
user = Passwd.new("/etc/passwd", "/etc/group")
.try &.get_user(user_name).not_nil!
entry["uid"] = user.uid
entry["gid"] = user.gid
entry["user"] = user.login
end
entry["consumers"] = Crinja.function do
token = arguments.varargs[0].to_s