-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
ws: conditional start of ssh-agent #21202
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,8 +42,10 @@ else | |
|
||
/usr/libexec/cockpit-certificate-ensure | ||
|
||
if [ -z "$SSH_AUTH_SOCK" ]; then | ||
if [ -z ${SSH_AUTH_SOCK+x} ]; then | ||
eval "$(ssh-agent)" | ||
else | ||
echo Agent sock ${SSH_AUTH_SOCK} | ||
Comment on lines
+47
to
+48
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Debugging leftover, please drop. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually I put that in on purpose, as the previous output was There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I meant, it's not really useful, as the user explicitly specified the path -- there's no surprise? And that path is only valid inside the container. |
||
fi | ||
exec /usr/libexec/cockpit-ws --local-ssh "$@" | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please write that in standard shell syntax and with quotes:
[ -z "${SSH_AUTH_SOCK:-}" ]