mirror of
https://github.com/certbot/certbot.git
synced 2026-06-06 07:12:54 -04:00
* Revert "Add back Python 3.4 support (#7510)"
This reverts commit 9b848b1d65.
* Fix certbot-auto
* Use a more consistent way to enable rh-python36
* Avoid to call CompareVersions unecessarily
* Control rh-python36 exit code
* Fix travis config
* Remove vscode config
* Ignore vscode
* Fix merge conflicts regarding #7587 (#70)
* Add changelog entry
* Finish sentence
* Update certbot/CHANGELOG.md
Co-Authored-By: Joona Hoikkala <joohoi@users.noreply.github.com>
* Update letsencrypt-auto-source/tests/centos6_tests.sh
Co-Authored-By: Joona Hoikkala <joohoi@users.noreply.github.com>
* Update letsencrypt-auto-source/tests/centos6_tests.sh
Co-Authored-By: Joona Hoikkala <joohoi@users.noreply.github.com>
* Update letsencrypt-auto-source/tests/centos6_tests.sh
Co-Authored-By: Joona Hoikkala <joohoi@users.noreply.github.com>
* Update letsencrypt-auto-source/tests/centos6_tests.sh
Co-Authored-By: Joona Hoikkala <joohoi@users.noreply.github.com>
* Update letsencrypt-auto-source/tests/centos6_tests.sh
Co-Authored-By: Joona Hoikkala <joohoi@users.noreply.github.com>
* Update comments
* Improve warning message
* Update changelog
Co-authored-by: Joona Hoikkala <joohoi@users.noreply.github.com>
60 lines
1.4 KiB
Bash
60 lines
1.4 KiB
Bash
# If new packages are installed by BootstrapRpmCommonBase below, version
|
|
# numbers in rpm_common.sh and rpm_python3.sh must be increased.
|
|
|
|
# Sets TOOL to the name of the package manager
|
|
# Sets appropriate values for YES_FLAG and QUIET_FLAG based on $ASSUME_YES and $QUIET_FLAG.
|
|
# Note: this function is called both while selecting the bootstrap scripts and
|
|
# during the actual bootstrap. Some things like prompting to user can be done in the latter
|
|
# case, but not in the former one.
|
|
InitializeRPMCommonBase() {
|
|
if type dnf 2>/dev/null
|
|
then
|
|
TOOL=dnf
|
|
elif type yum 2>/dev/null
|
|
then
|
|
TOOL=yum
|
|
|
|
else
|
|
error "Neither yum nor dnf found. Aborting bootstrap!"
|
|
exit 1
|
|
fi
|
|
|
|
if [ "$ASSUME_YES" = 1 ]; then
|
|
YES_FLAG="-y"
|
|
fi
|
|
if [ "$QUIET" = 1 ]; then
|
|
QUIET_FLAG='--quiet'
|
|
fi
|
|
}
|
|
|
|
BootstrapRpmCommonBase() {
|
|
# Arguments: whitespace-delimited python packages to install
|
|
|
|
InitializeRPMCommonBase # This call is superfluous in practice
|
|
|
|
pkgs="
|
|
gcc
|
|
augeas-libs
|
|
openssl
|
|
openssl-devel
|
|
libffi-devel
|
|
redhat-rpm-config
|
|
ca-certificates
|
|
"
|
|
|
|
# Add the python packages
|
|
pkgs="$pkgs
|
|
$1
|
|
"
|
|
|
|
if $TOOL list installed "httpd" >/dev/null 2>&1; then
|
|
pkgs="$pkgs
|
|
mod_ssl
|
|
"
|
|
fi
|
|
|
|
if ! $TOOL install $YES_FLAG $QUIET_FLAG $pkgs; then
|
|
error "Could not install OS dependencies. Aborting bootstrap!"
|
|
exit 1
|
|
fi
|
|
}
|