-# pl_netflow requires third party MySQL RPMs
-mysql_mirrors=(
-file:///usr/share/mirrors/mysql
-http://boot.planet-lab.org/install-rpms/3rdparty
-)
-
-for mirror in "${mysql_mirrors[@]}" ; do
- baseurl=$mirror/
- if list $baseurl | grep -q "MySQL-server.*rpm" ; then
- break
- fi
- unset baseurl
-done
-
-if [ -z "$baseurl" ] ; then
- echo "Error: MySQL-server RPM package"
- echo " could not be found in any of the following locations:"
- echo
- for mirror in ${mysql_mirrors[@]} ; do
- echo $mirror
- done
- echo
- exit 1
-fi
-
-# Add MySQL mirror to yum.conf
-if ! grep -q mysql $vroot/etc/yum.conf ; then
- cat >>$vroot/etc/yum.conf <<EOF
-
-[mysql]
-name=MySQL
-baseurl=$baseurl
-EOF
-fi
-