From c565a93260d2448a2bf90eda0d1e795d4e613eea Mon Sep 17 00:00:00 2001 From: Piyush Kumar Date: Sat, 21 Oct 2023 01:27:14 +0530 Subject: [PATCH] using manual command for k3s service restarts Signed-off-by: Piyush Kumar --- main.go | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/main.go b/main.go index 718346c..f39e8c9 100644 --- a/main.go +++ b/main.go @@ -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",