Skip to content

Commit

Permalink
#65 Debug /opt/kafka/config/ not writable - use bash instead of sh
Browse files Browse the repository at this point in the history
  • Loading branch information
cer committed Aug 20, 2024
1 parent 89bc149 commit 8ca201c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ protected void containerIsStarting(InspectContainerResponse containerInfo) {
printExecResult(result, "id");
result = execInContainer("touch", "/opt/kafka/config/foo");
printExecResult(result, "touch /opt/kafka/config/foo");
result = execInContainer("sh", "-c", "[[ -w /opt/kafka/config/ ]] && echo yes");
printExecResult(result, "sh -c '[[ -w /opt/kafka/config/ ]] && echo yes'");
result = execInContainer("bash", "-c", "[[ -w /opt/kafka/config/ ]] && echo yes");
printExecResult(result, "bash -c '[[ -w /opt/kafka/config/ ]] && echo yes'");
} catch (IOException | InterruptedException e) {
throw new RuntimeException(e);
}
Expand Down

0 comments on commit 8ca201c

Please sign in to comment.