mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 08:08:00 +02:00
Merge pull request #1520 from Aeyoun/patch-2
Support more distros with different RPM names
This commit is contained in:
+31
-15
@@ -1,8 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Tested with:
|
# Tested with:
|
||||||
# - Fedora 22 (x64)
|
# - Fedora 22, 23 (x64)
|
||||||
# - Centos 7 (x64: on AWS EC2 t2.micro, DigitalOcean droplet)
|
# - Centos 7 (x64: onD igitalOcean droplet)
|
||||||
|
|
||||||
if type yum 2>/dev/null
|
if type yum 2>/dev/null
|
||||||
then
|
then
|
||||||
@@ -15,17 +15,33 @@ else
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Some distros and older versions of current distros use a "python27"
|
||||||
|
# instead of "python" naming convention. Try both conventions.
|
||||||
|
if ! $tool install -y \
|
||||||
|
python \
|
||||||
|
python-devel \
|
||||||
|
python-virtualenv
|
||||||
|
then
|
||||||
|
if ! $tool install -y \
|
||||||
|
python27 \
|
||||||
|
python27-devel \
|
||||||
|
python27-virtualenv
|
||||||
|
then
|
||||||
|
echo "Could not install Python dependencies. Aborting bootstrap!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# "git-core" seems to be an alias for "git" in CentOS 7 (yum search fails)
|
# "git-core" seems to be an alias for "git" in CentOS 7 (yum search fails)
|
||||||
# Amazon Linux 2015.03 needs python27-virtualenv rather than python-virtualenv
|
if ! $tool install -y \
|
||||||
$tool install -y \
|
git-core \
|
||||||
git-core \
|
gcc \
|
||||||
python \
|
dialog \
|
||||||
python-devel \
|
augeas-libs \
|
||||||
python27-virtualenv \
|
openssl-devel \
|
||||||
python-virtualenv \
|
libffi-devel \
|
||||||
gcc \
|
ca-certificates
|
||||||
dialog \
|
then
|
||||||
augeas-libs \
|
echo "Could not install additional dependencies. Aborting bootstrap!"
|
||||||
openssl-devel \
|
exit 1
|
||||||
libffi-devel \
|
fi
|
||||||
ca-certificates \
|
|
||||||
|
|||||||
Reference in New Issue
Block a user