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

Support running install-deps on Debian-derived distributions. #1476

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
14 changes: 11 additions & 3 deletions bin/install-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,21 @@ OPENSHIFT_CLIENT='https://github.com/openshift/origin/releases/download/v3.11.0/
CERTSTRAP_VERSION=1.1.1
YQ_VERSION=3.3.0

sudo yum -y install net-tools bind-utils wget unzip git
if [ ! -f /etc/debian_release ]; then
sudo yum -y install net-tools bind-utils wget unzip git
else
sudo apt -y satisfy net-tools bind-utils wget unzip git
fi

which buildah
if [ $? -eq 1 ]; then
echo "installing buildah"
sudo subscription-manager repos --enable=rhel-7-server-extras-rpms
sudo yum -y install buildah
if [ ! -f /etc/debian_release ]; then
sudo subscription-manager repos --enable=rhel-7-server-extras-rpms
sudo yum -y install buildah
else
sudo apt -y install buildah
fi
fi

FILE='openshift-origin-client.tgz'
Expand Down