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

master
Luka Vandervelden 4 years ago
parent 9c84fe7368
commit 0572fc1647

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

Loading…
Cancel
Save