Browse Source

add jails dependencies

master
Jörg Thalheim 6 years ago
parent
commit
9aa727fe91
  1. 3
      jails.json
  2. 3
      scripts/lib/jail.rb
  3. 7
      templates/jail.erb

3
jails.json

@ -17,6 +17,9 @@
]
},
"default_jail_conf": {
"provide": "standard_ezjail",
"require": [],
"before": [],
"exec_start": "/bin/sh /etc/rc",
"exec_stop": null,
"hostname": "%{name}",

3
scripts/lib/jail.rb

@ -111,6 +111,9 @@ class JailRegistry < Registry
def default_jail_conf
{
"provide" => "standard_ezjail",
"require" => [],
"before" => [],
"exec_start" => "/bin/sh /etc/rc",
"exec_stop" => nil,
"hostname" => "%{name}",

7
templates/jail.erb

@ -1,4 +1,11 @@
# THIS FILE WAS GENERATED, CHANGES WILL BE OVERWRITTEN
#
# PROVIDE: <%= provide %>
# REQUIRE: <%= require_.join(" ") %>
# BEFORE: <%= before.join(" ") %>
#
<% properties.each do |property,value| -%>
export jail_<%= name %>_<%= property %>=<%= value %>
<% end -%>
Loading…
Cancel
Save