mirror of
https://github.com/certbot/certbot.git
synced 2026-08-03 19:52:34 +02:00
@@ -458,12 +458,39 @@ BootstrapSmartOS() {
|
|||||||
pkgin -y install 'gcc49' 'py27-augeas' 'py27-virtualenv'
|
pkgin -y install 'gcc49' 'py27-augeas' 'py27-virtualenv'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BootstrapMageiaCommon() {
|
||||||
|
if ! $SUDO urpmi --force \
|
||||||
|
python \
|
||||||
|
libpython-devel \
|
||||||
|
python-virtualenv
|
||||||
|
then
|
||||||
|
echo "Could not install Python dependencies. Aborting bootstrap!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! $SUDO urpmi --force \
|
||||||
|
git \
|
||||||
|
gcc \
|
||||||
|
cdialog \
|
||||||
|
python-augeas \
|
||||||
|
libopenssl-devel \
|
||||||
|
libffi-devel \
|
||||||
|
rootcerts
|
||||||
|
then
|
||||||
|
echo "Could not install additional dependencies. Aborting bootstrap!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
# Install required OS packages:
|
# Install required OS packages:
|
||||||
Bootstrap() {
|
Bootstrap() {
|
||||||
if [ -f /etc/debian_version ]; then
|
if [ -f /etc/debian_version ]; then
|
||||||
echo "Bootstrapping dependencies for Debian-based OSes..."
|
echo "Bootstrapping dependencies for Debian-based OSes..."
|
||||||
BootstrapDebCommon
|
BootstrapDebCommon
|
||||||
|
elif [ -f /etc/mageia-release ] ; then
|
||||||
|
# Mageia has both /etc/mageia-release and /etc/redhat-release
|
||||||
|
ExperimentalBootstrap "Mageia" BootstrapMageiaCommon
|
||||||
elif [ -f /etc/redhat-release ]; then
|
elif [ -f /etc/redhat-release ]; then
|
||||||
echo "Bootstrapping dependencies for RedHat-based OSes..."
|
echo "Bootstrapping dependencies for RedHat-based OSes..."
|
||||||
BootstrapRpmCommon
|
BootstrapRpmCommon
|
||||||
|
|||||||
@@ -155,12 +155,16 @@ DeterminePythonVersion() {
|
|||||||
{{ bootstrappers/free_bsd.sh }}
|
{{ bootstrappers/free_bsd.sh }}
|
||||||
{{ bootstrappers/mac.sh }}
|
{{ bootstrappers/mac.sh }}
|
||||||
{{ bootstrappers/smartos.sh }}
|
{{ bootstrappers/smartos.sh }}
|
||||||
|
{{ bootstrappers/mageia_common.sh }}
|
||||||
|
|
||||||
# Install required OS packages:
|
# Install required OS packages:
|
||||||
Bootstrap() {
|
Bootstrap() {
|
||||||
if [ -f /etc/debian_version ]; then
|
if [ -f /etc/debian_version ]; then
|
||||||
echo "Bootstrapping dependencies for Debian-based OSes..."
|
echo "Bootstrapping dependencies for Debian-based OSes..."
|
||||||
BootstrapDebCommon
|
BootstrapDebCommon
|
||||||
|
elif [ -f /etc/mageia-release ] ; then
|
||||||
|
# Mageia has both /etc/mageia-release and /etc/redhat-release
|
||||||
|
ExperimentalBootstrap "Mageia" BootstrapMageiaCommon
|
||||||
elif [ -f /etc/redhat-release ]; then
|
elif [ -f /etc/redhat-release ]; then
|
||||||
echo "Bootstrapping dependencies for RedHat-based OSes..."
|
echo "Bootstrapping dependencies for RedHat-based OSes..."
|
||||||
BootstrapRpmCommon
|
BootstrapRpmCommon
|
||||||
|
|||||||
@@ -0,0 +1,23 @@
|
|||||||
|
BootstrapMageiaCommon() {
|
||||||
|
if ! $SUDO urpmi --force \
|
||||||
|
python \
|
||||||
|
libpython-devel \
|
||||||
|
python-virtualenv
|
||||||
|
then
|
||||||
|
echo "Could not install Python dependencies. Aborting bootstrap!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! $SUDO urpmi --force \
|
||||||
|
git \
|
||||||
|
gcc \
|
||||||
|
cdialog \
|
||||||
|
python-augeas \
|
||||||
|
libopenssl-devel \
|
||||||
|
libffi-devel \
|
||||||
|
rootcerts
|
||||||
|
then
|
||||||
|
echo "Could not install additional dependencies. Aborting bootstrap!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user