Skip to content
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

Improve eclipse ssh agent on unknown Linux stacks #4334

Merged
merged 2 commits into from
Mar 7, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions agents/ssh/src/main/resources/org.eclipse.che.ssh.script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if [ -f /etc/centos-release ]; then
fi

###############################
### Install Needed packaged ###
### Install Needed packages ###
###############################

# Red Hat Enterprise Linux 7
Expand Down Expand Up @@ -115,8 +115,11 @@ elif echo ${LINUX_TYPE} | grep -qi "CentOS"; then

else
>&2 echo "Unrecognized Linux Type"
>&2 cat $FILE
exit 1
command -v sshd >/dev/null 2>&1 || {
>&2 cat $FILE;
exit 1;
}
${SUDO} sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
fi

command -v pidof >/dev/null 2>&1 && {
Expand Down