Skip to content

Commit

Permalink
modifying path var for sudo k3s/rke2 commands in secrets-encryption
Browse files Browse the repository at this point in the history
  • Loading branch information
aganesh-suse committed Apr 24, 2024
1 parent 9879192 commit 414a94b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions shared/product.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,7 @@ func CertRotate(product string, ips []string) (string, error) {
}

func SecretEncryptOps(action, ip, product string) (string, error) {
if product == "rke2" {
product = "-E env \"PATH=$PATH:/usr/local/bin\" rke2"
}
product = fmt.Sprintf("-E env \"PATH=$PATH:/usr/local/bin\" %s", product)
secretEncryptCmd := map[string]string{
"status": fmt.Sprintf("sudo %s secrets-encrypt status", product),
"enable": fmt.Sprintf("sudo %s secrets-encrypt enable", product),
Expand Down

0 comments on commit 414a94b

Please sign in to comment.