mirror of
https://github.com/certbot/certbot.git
synced 2026-08-03 08:03:10 +02:00
Update _rpm_common.sh
This commit is contained in:
+17
-24
@@ -6,35 +6,28 @@
|
|||||||
|
|
||||||
# "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)
|
||||||
bootstrap() {
|
bootstrap() {
|
||||||
|
|
||||||
|
pkgs="git-core
|
||||||
|
python
|
||||||
|
python-devel
|
||||||
|
python-virtualenv
|
||||||
|
python-devel
|
||||||
|
gcc dialog
|
||||||
|
augeas-libs
|
||||||
|
openssl-devel
|
||||||
|
libffi-devel
|
||||||
|
ca-certificates"
|
||||||
|
|
||||||
if hash yum 2>/dev/null; then
|
if hash yum 2>/dev/null; then
|
||||||
yum install -y \
|
yum install -y $pkgs;
|
||||||
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
|
elif hash dnf 2>/dev/null; then
|
||||||
dnf install -y \
|
dnf install -y $pkgs;
|
||||||
git-core \
|
|
||||||
python \
|
|
||||||
python-devel \
|
|
||||||
python-virtualenv \
|
|
||||||
python-devel \
|
|
||||||
gcc \
|
|
||||||
dialog \
|
|
||||||
augeas-libs \
|
|
||||||
openssl-devel \
|
|
||||||
libffi-devel \
|
|
||||||
ca-certificates \;
|
|
||||||
else
|
else
|
||||||
echo "Neither yum nor dnf found. Aborting bootstrap!"
|
echo "Neither yum nor dnf found. Aborting bootstrap!"
|
||||||
exit 1;
|
exit 1;
|
||||||
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
bootstrap
|
bootstrap
|
||||||
|
|||||||
Reference in New Issue
Block a user