mageia bootstrap

This commit is contained in:
Luca Olivetti 2015-12-04 16:10:43 +01:00
parent 8bfda79fd6
commit 21187b7c1b
2 changed files with 27 additions and 0 deletions

24
bootstrap/_mageia_common.sh Executable file
View file

@ -0,0 +1,24 @@
#!/bin/sh
# Tested on mageia 5 x86_64
if ! urpmi --force \
python \
libpython-devel \
python-virtualenv
then
echo "Could not install Python dependencies. Aborting bootstrap!"
exit 1
fi
if ! urpmi --force \
git \
gcc \
cdialog \
python-augeas \
libopenssl-devel \
libffi-devel \
rootcerts
then
echo "Could not install additional dependencies. Aborting bootstrap!"
exit 1
fi

View file

@ -122,6 +122,9 @@ then
if [ -f /etc/debian_version ] ; then
echo "Bootstrapping dependencies for Debian-based OSes..."
$SUDO $BOOTSTRAP/_deb_common.sh
elif [ -f /etc/mageia-release ] ; then
echo "Bootstrapping dependencies for mageia..."
$SUDO $BOOTSTRAP/_mageia_common.sh
elif [ -f /etc/redhat-release ] ; then
echo "Bootstrapping dependencies for RedHat-based OSes..."
$SUDO $BOOTSTRAP/_rpm_common.sh