1
0
mirror of https://github.com/kairos-io/provider-k3s.git synced 2025-05-10 00:46:32 +00:00

Merge pull request from kairos-io/systemctl

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

13
main.go
View File

@ -137,15 +137,12 @@ func clusterProvider(cluster clusterplugin.Cluster) yip.YipConfig {
yip.Stage{
Name: "Enable Systemd Services",
If: "[ -x /bin/systemctl ]",
Systemctl: yip.Systemctl{
Enable: []string{
systemName,
},
Start: []string{
systemName,
},
Commands: []string{
fmt.Sprintf("systemctl enable %s", systemName),
fmt.Sprintf("systemctl restart %s", systemName),
},
})
},
)
cfg := yip.YipConfig{
Name: "K3s Kairos Cluster Provider",