#!/bin/sh # Author: Athmane Madjoudj # Author: Christoph Galuschka t_Log "Running $0 - python can retrieve mysql55-mysql-server version information." # we need a working and running mysql server # starting with 5.10, we have to differ between mysql55 and mysql if [ $centos_ver = 5 ] then t_ServiceControl mysqld stop t_ServiceControl mysql55-mysqld start else exit 0 fi # Installing additional python/mysql module t_InstallPackage MySQL-python # create python Scrip SCRIPT='/var/tmp/test.py' cat >$SCRIPT <