1
0
mirror of https://github.com/rancher/os.git synced 2025-08-31 14:23:11 +00:00

Refactor tlsconf

This commit is contained in:
Darren Shepherd
2015-02-19 13:48:10 -07:00
parent 900b4512c9
commit 7fd1091b6e
4 changed files with 101 additions and 94 deletions

View File

@@ -8,11 +8,11 @@ import (
"github.com/docker/docker/pkg/reexec"
"github.com/rancherio/os/cmd/control"
"github.com/rancherio/os/cmd/systemdocker"
"github.com/rancherio/os/cmd/tlsconf"
osInit "github.com/rancherio/os/init"
"github.com/rancherio/os/power"
"github.com/rancherio/os/respawn"
"github.com/rancherio/os/sysinit"
"github.com/rancherio/os/util"
)
func registerCmd(cmd string, mainFunc func()) {
@@ -42,7 +42,7 @@ func main() {
registerCmd("/sbin/halt", power.Halt)
registerCmd("/usr/bin/respawn", respawn.Main)
registerCmd("/usr/sbin/rancherctl", control.Main)
registerCmd("/usr/bin/tlsconf", util.TLSConf)
registerCmd("/usr/bin/tlsconf", tlsconf.Main)
registerCmd("/usr/bin/cloudinit", control.CloudInit)
if !reexec.Init() {