ironic-python-agent-builder/tinyipa/install-deps.sh
Dmitry Tantsur 4d0547a636 tinyipa: use python 3 for building on all systems
CentOS 8 does not have python-pip.

Change-Id: I9913d208a1182dc9c4ca6644f945151c83da1437
2020-09-14 13:48:16 +02:00

24 lines
750 B
Bash
Executable File

#!/bin/bash
COMMON_PACKAGES="wget unzip sudo gawk"
APT_PACKAGES="${COMMON_PACKAGES} python3-pip squashfs-tools"
YUM_PACKAGES="${APT_PACKAGES}"
ZYPPER_PACKAGES="${COMMON_PACKAGES} python3-pip squashfs"
echo "Installing dependencies:"
# first zypper in case zypper-aptitude is installed
if [ -x "/usr/bin/zypper" ]; then
sudo -E zypper -n install -l ${ZYPPER_PACKAGES}
elif [ -x "/usr/bin/apt-get" ]; then
sudo -E apt-get update
sudo -E apt-get install -y ${APT_PACKAGES}
elif [ -x "/usr/bin/dnf" ]; then
sudo -E dnf install -y ${YUM_PACKAGES}
elif [ -x "/usr/bin/yum" ]; then
sudo -E yum install -y ${YUM_PACKAGES}
else
echo "No supported package manager installed on system. Supported: apt, yum, dnf, zypper"
exit 1
fi