mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 19:13:34 +00:00
16 lines
287 B
Go
16 lines
287 B
Go
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
|
|
}
|