Skip to content

Commit

Permalink
Adding flag to skip selinux download (#187)
Browse files Browse the repository at this point in the history
* adding flag to skip selinux download

* Modified flag name
  • Loading branch information
bjiang27 authored Sep 2, 2022
1 parent dcd03c6 commit c458988
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deploy/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ const (
RancherK3sKubeConfigPath = "/etc/rancher/k3s/k3s.yaml"
EnvK3sInstallSkipDownload = "INSTALL_K3S_SKIP_DOWNLOAD=true"
EnvK3sForceRestart = "INSTALL_K3S_FORCE_RESTART=true"
EnvK3sSkipSelinuxRpm = "INSTALL_K3S_SKIP_SELINUX_RPM=true"
)

const (
Expand Down Expand Up @@ -736,7 +737,7 @@ func (dp *DeployProcess) ExecuteK3sInstallScript() {
}

cmd := execCommand(filepath.Join(dp.tmpDir, k3SInstallScript))
cmd.Env = append(os.Environ(), EnvK3sInstallSkipDownload, EnvK3sForceRestart)
cmd.Env = append(os.Environ(), EnvK3sInstallSkipDownload, EnvK3sForceRestart, EnvK3sSkipSelinuxRpm)
cmd.Stdout = logFile
cmd.Stderr = logFile
err = cmd.Run()
Expand Down

0 comments on commit c458988

Please sign in to comment.