1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-21 19:01:07 +03:00

Update _rpm_common.sh

Added switch to use either yum or dnf (fedora 22)
This commit is contained in:
Patrick Heppler
2015-08-10 13:53:29 +02:00
parent 74b677248d
commit 93f43db654

View File

@@ -5,15 +5,36 @@
# - Centos 7 (x64: on AWS EC2 t2.micro, DigitalOcean droplet)
# "git-core" seems to be an alias for "git" in CentOS 7 (yum search fails)
yum install -y \
git-core \
python \
python-devel \
python-virtualenv \
python-devel \
gcc \
dialog \
augeas-libs \
openssl-devel \
libffi-devel \
ca-certificates \
bootstrap() {
if hash yum 2>/dev/null; then
yum install -y \
git-core \
python \
python-devel \
python-virtualenv \
python-devel \
gcc \
dialog \
augeas-libs \
openssl-devel \
libffi-devel \
ca-certificates \;
elif hash dnf 2>/dev/null; then
dnf install -y \
git-core \
python \
python-devel \
python-virtualenv \
python-devel \
gcc \
dialog \
augeas-libs \
openssl-devel \
libffi-devel \
ca-certificates \;
else
echo "Neither yum nor dnf found. Aborting bootstrap!"
exit 1;
fi
}
bootstrap