mirror of
https://github.com/certbot/certbot.git
synced 2026-06-04 14:26:10 -04:00
* Add version number to bootstrap scripts. * Always determine Bootstrap function and version. * Write bootstrap version into venv. * Add PrevBootstrapVersion function. * Add OS bootstrapping check to phase 2. * Differentiate -n and renew when rebootstrapping. * Quote all environment variables. * Correct test condition * Add loud warning about hardcoded version list. * s/VENV_BOOTSTRAP_VERSION/BOOTSTRAP_VERSION_PATH * Properly handle noop bootstrap functions.
31 lines
721 B
Bash
Executable file
31 lines
721 B
Bash
Executable file
# If new packages are installed by BootstrapGentooCommon below, this version
|
|
# number must be increased.
|
|
BOOTSTRAP_GENTOO_COMMON_VERSION=1
|
|
|
|
BootstrapGentooCommon() {
|
|
PACKAGES="
|
|
dev-lang/python:2.7
|
|
dev-python/virtualenv
|
|
app-admin/augeas
|
|
dev-libs/openssl
|
|
dev-libs/libffi
|
|
app-misc/ca-certificates
|
|
virtual/pkgconfig"
|
|
|
|
ASK_OPTION="--ask"
|
|
if [ "$ASSUME_YES" = 1 ]; then
|
|
ASK_OPTION=""
|
|
fi
|
|
|
|
case "$PACKAGE_MANAGER" in
|
|
(paludis)
|
|
cave resolve --preserve-world --keep-targets if-possible $PACKAGES -x
|
|
;;
|
|
(pkgcore)
|
|
pmerge --noreplace --oneshot $ASK_OPTION $PACKAGES
|
|
;;
|
|
(portage|*)
|
|
emerge --noreplace --oneshot $ASK_OPTION $PACKAGES
|
|
;;
|
|
esac
|
|
}
|