Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix script for gcp #2802

Merged
merged 2 commits into from
Jul 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion ibm/data_source_ibm_satellite_host_script.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,11 @@ yum repolist all
yum install container-selinux -y
`)
} else if strings.ToLower(hostProvider) == "google" {
lines[i] = "yum update -y"
lines[i] = fmt.Sprintf(`yum update --disablerepo=* --enablerepo="*" -y
yum repolist all
yum install container-selinux -y
yum install subscription-manager -y
`)
} else {
lines[i] = "subscription-manager refresh\nyum update -y\n"
}
Expand Down