2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2024-12-25 12:41:33 +00:00

new script supports two version of perl-DBD

Former-commit-id: 76fe225e059a7e4bab48af925e1550c4fdc086c8
This commit is contained in:
lissav 2010-07-27 15:38:21 +00:00
parent 0d28be67a6
commit d474b1284e

View File

@ -0,0 +1,18 @@
#!/bin/ksh
# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
# xCAT on AIX - prerequisite install script
cd `dirname $0`
rpm -Uvh xcat-mysql-5.1-37.aix5.3.ppc.rpm
PERLVER=`perl -v|grep 'This is perl'|cut -d' ' -f 4`
if [ "$PERLVER" == "v5.8.2" ]; then
rpm -Uvh perl-DBD-mysql-4.007-1.aix5.3.ppc.rpm
elif [ "$PERLVER" == "v5.8.8" ]; then
rpm -Uvh perl-DBD-mysql-4.007-1.aix5.3.ppc.rpm
elif [ "$PERLVER" == "v5.10.1" ]; then
rpm -Uvh perl-DBD-mysql-4.007-2.aix7.1.ppc.rpm
OSVER='7.1'
else
echo "Error: the perl version of '$PERLVER' is not one that instoss understands. Exiting..."
exit 2
fi