summaryrefslogtreecommitdiff
path: root/cmd/skiff
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/skiff')
-rw-r--r--cmd/skiff/main.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmd/skiff/main.go b/cmd/skiff/main.go
index 7c9d505..8ca1406 100644
--- a/cmd/skiff/main.go
+++ b/cmd/skiff/main.go
@@ -84,6 +84,7 @@ func cmdNewApp(args []string) error {
healthPath := fs.String("health-path", layout.DefaultHealthPath, "health check path")
serverName := fs.String("server-name", "", "nginx server_name (defaults to <name>)")
baseSnapshot := fs.String("base-snapshot", "ready", "snapshot on the base dataset to clone from")
+ iface := fs.String("iface", layout.DefaultJailIface, "host interface the jail's IP is aliased onto")
fs.Parse(args)
if *name == "" || *ip == "" {
@@ -115,9 +116,12 @@ func cmdNewApp(args []string) error {
return fmt.Errorf("initialize env file: %w", err)
}
- if err := jailmgr.WriteConf(cfg, *name, *ip); err != nil {
+ if err := jailmgr.WriteConf(cfg, *name, *ip, *iface); err != nil {
return fmt.Errorf("write jail config: %w", err)
}
+ if err := jailmgr.EnableMail(cfg, *name); err != nil {
+ return fmt.Errorf("configure mail: %w", err)
+ }
if err := appmeta.Write(cfg.MetaPath(*name), appmeta.Meta{
IP: *ip,