From db9143541006de38a4df7bd6df94bda1ed007e8c Mon Sep 17 00:00:00 2001 From: Piyush Kumar Date: Sat, 21 Oct 2023 01:34:25 +0530 Subject: [PATCH] using manual command for rke2 service restarts Signed-off-by: Piyush Kumar --- main.go | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/main.go b/main.go index 19a6c69..d650038 100644 --- a/main.go +++ b/main.go @@ -89,7 +89,7 @@ func clusterProvider(cluster clusterplugin.Cluster) yip.YipConfig { stages := []yip.Stage{ { - Name: " Install RKE2 Configuration Files", + Name: "Install RKE2 Configuration Files", Files: files, Commands: []string{ @@ -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), }, })