Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
deads2k committed Feb 28, 2018
1 parent de25876 commit fa5fa67
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pkg/oc/bootstrap/clusterup/componentinstall/apply_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ type List struct {

const listBashScript = `#!/bin/sh
set -e
set -x
ls -alh /
ns=""
if [ -f /namespace-file ]; then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ type Template struct {

const templateBashScript = `#!/bin/sh
set -e
set -x
ls -alh /
while read p; do
oc adm policy add-scc-to-user --config=/kubeconfig.kubeconfig privileged ${p} --loglevel=8
Expand Down Expand Up @@ -68,7 +71,7 @@ func (opt Template) Install(dockerClient dockerhelper.Interface, imageRunHelper
HostNetwork().
HostPid().
Entrypoint("sh").
Command("-c", "chmod 755 /install.sh; /install.sh").Run()
Command("-c", "echo '"+opt.Name+"'; chmod 755 /install.sh; /install.sh").Run()
if err != nil {
lastErr = errors.NewError("failed to install %q: %v", opt.Name, err).WithCause(err)
return false, nil
Expand Down

0 comments on commit fa5fa67

Please sign in to comment.