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

master
Luka Vandervelden 2020-01-04 15:22:34 +01:00
parent 9c84fe7368
commit 0572fc1647
1 changed files with 7 additions and 5 deletions

View File

@ -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