mirror of
https://github.com/psviderski/uncloud.git
synced 2026-10-08 06:09:17 +00:00
init machined cli
This commit is contained in:
1 parent
c99cdcd95f
commit
b4606b939b
9 files changed
+167
No files matched your search
@@ -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