Skip to content

Conversation

@jsoriano
Copy link
Member

If a shell process is upgraded in Linux, the link in the proc file system breaks. In this case the link can be resolved in some cases with the (deleted) suffix message. This is what happens with the library we use to get information from processes.

In these cases the output of elastic-package stack shellinit looks like that:

 $ elastic-package stack shellinit
Detected shell: bash (deleted)
Error: shellinit failed: cannot get shell init template: shell type is unknown, should be one of bash, dash, fish, sh, zsh, pwsh, 

Handle these cases by removing the (deleted) suffix.

@jsoriano jsoriano requested a review from a team March 21, 2024 16:16
@jsoriano jsoriano self-assigned this Mar 21, 2024
Copy link
Contributor

@mrodm mrodm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@jsoriano jsoriano enabled auto-merge (squash) March 21, 2024 16:52
@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

cc @jsoriano

@jsoriano jsoriano merged commit 28a985c into elastic:main Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants