Merge pull request #57 from kairos-io/systemctl

using manual command for rke2 service restarts
This commit is contained in:
Santhosh 2023-10-20 14:44:10 -07:00 committed by GitHub
commit 2bc17d752e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

10
main.go
View File

@ -115,13 +115,9 @@ func clusterProvider(cluster clusterplugin.Cluster) yip.YipConfig {
stages = append(stages, yip.Stage{
Name: "Enable Systemd Services",
Systemctl: yip.Systemctl{
Enable: []string{
systemName,
},
Start: []string{
systemName,
},
Commands: []string{
fmt.Sprintf("systemctl enable %s", systemName),
fmt.Sprintf("systemctl restart %s", systemName),
},
})