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.
30 lines
675 B
Bash
30 lines
675 B
Bash
# If new packages are installed by BootstrapMageiaCommon below, this version
|
|
# number must be increased.
|
|
BOOTSTRAP_MAGEIA_COMMON_VERSION=1
|
|
|
|
BootstrapMageiaCommon() {
|
|
if [ "$QUIET" = 1 ]; then
|
|
QUIET_FLAG='--quiet'
|
|
fi
|
|
|
|
if ! urpmi --force $QUIET_FLAG \
|
|
python \
|
|
libpython-devel \
|
|
python-virtualenv
|
|
then
|
|
error "Could not install Python dependencies. Aborting bootstrap!"
|
|
exit 1
|
|
fi
|
|
|
|
if ! urpmi --force $QUIET_FLAG \
|
|
git \
|
|
gcc \
|
|
python-augeas \
|
|
libopenssl-devel \
|
|
libffi-devel \
|
|
rootcerts
|
|
then
|
|
error "Could not install additional dependencies. Aborting bootstrap!"
|
|
exit 1
|
|
fi
|
|
}
|