Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_rpm_common.sh « bootstrap - github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 411d7bd920713d80b8265ea95b0cf336051e274c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/sh

# Tested with:
#   - Fedora 22, 23 (x64)
#   - Centos 7 (x64: on DigitalOcean droplet)

if type dnf 2>/dev/null
then
  tool=dnf
elif type yum 2>/dev/null
then
  tool=yum

else
  echo "Neither yum nor dnf found. Aborting bootstrap!"
  exit 1
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)
if ! $tool install -y \
       git-core \
       gcc \
       dialog \
       augeas-libs \
       openssl-devel \
       libffi-devel \
       redhat-rpm-config \
       ca-certificates
then
    echo "Could not install additional dependencies. Aborting bootstrap!"
    exit 1
fi