Skip to content

"Cockpit is not compatible with the software on the system" when adding welcome message through .bashrc file #18363

Answered by martinpitt
ankeshanand1 asked this question in Q&A
Discussion options

You must be logged in to vote

Such banners tend to break automation a lot if they happen for non-interactive logins. If you do ssh yourmachine whoami, do you see the banner? If so, I recommend to wrap the sourcing into the usual "is interactive?" check:

if [ -n "$PS1" ] && [ -f ~/.Banner.sh ]; then
    source ~/.Banner.sh
fi

Other than that, we actually circumvented such noise in commit 87151a6 in version 196. This commit is also in RHEL/CentOS 7.9. Do you see a pattern that it works when connecting to other Ubuntu machines, but it fails with the CentOS ones?

In other words, I cannot reproduce this -- we have integration tests that do exactly this "stdout noise" and it works; so either this banner.sh does something mo…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ankeshanand1
Comment options

Answer selected by ankeshanand1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #18362 on February 17, 2023 05:08.