mirror of
https://github.com/certbot/certbot.git
synced 2026-08-04 12:13:34 +02:00
Merge pull request #747 from kuba/rpm-dnf
rpm bootstrap: yum and dnf support
This commit is contained in:
@@ -4,8 +4,19 @@
|
|||||||
# - Fedora 22 (x64)
|
# - Fedora 22 (x64)
|
||||||
# - Centos 7 (x64: on AWS EC2 t2.micro, DigitalOcean droplet)
|
# - Centos 7 (x64: on AWS EC2 t2.micro, DigitalOcean droplet)
|
||||||
|
|
||||||
|
if type yum 2>/dev/null
|
||||||
|
then
|
||||||
|
tool=yum
|
||||||
|
elif type dnf 2>/dev/null
|
||||||
|
then
|
||||||
|
tool=dnf
|
||||||
|
else
|
||||||
|
echo "Neither yum nor dnf found. Aborting bootstrap!"
|
||||||
|
exit 1
|
||||||
|
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)
|
||||||
yum install -y \
|
$tool install -y \
|
||||||
git-core \
|
git-core \
|
||||||
python \
|
python \
|
||||||
python-devel \
|
python-devel \
|
||||||
|
|||||||
Reference in New Issue
Block a user