Fixes a gen-config issue related to non-runnables.
This commit is contained in:
parent
9c84fe7368
commit
0572fc1647
@ -20,12 +20,14 @@ class Service
|
|||||||
entry["domain"] = domain
|
entry["domain"] = domain
|
||||||
entry["ports"] = ports
|
entry["ports"] = ports
|
||||||
|
|
||||||
|
if !non_runnable
|
||||||
user = Passwd.new("/etc/passwd", "/etc/group")
|
user = Passwd.new("/etc/passwd", "/etc/group")
|
||||||
.try &.get_user(user_name).not_nil!
|
.try &.get_user(user_name).not_nil!
|
||||||
|
|
||||||
entry["uid"] = user.uid
|
entry["uid"] = user.uid
|
||||||
entry["gid"] = user.gid
|
entry["gid"] = user.gid
|
||||||
entry["user"] = user.login
|
entry["user"] = user.login
|
||||||
|
end
|
||||||
|
|
||||||
entry["consumers"] = Crinja.function do
|
entry["consumers"] = Crinja.function do
|
||||||
token = arguments.varargs[0].to_s
|
token = arguments.varargs[0].to_s
|
||||||
|
Loading…
Reference in New Issue
Block a user