mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-27 19:43:34 +00:00
init machined cli
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"path/filepath"
|
||||
"uncloud/internal/machine/daemon"
|
||||
)
|
||||
|
||||
func Install(dataDir string, cfg daemon.Config) error {
|
||||
err := cfg.Write(filepath.Join(dataDir, daemon.MachineConfigPath))
|
||||
if err == nil {
|
||||
fmt.Println("Machine config created.")
|
||||
}
|
||||
return err
|
||||
}
|
||||
Reference in New Issue
Block a user