From 376c31ea8b07fa2739fbd14e1f7530efce85776a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zden=C4=9Bk=20=C5=A0ustr?= Date: Mon, 6 Feb 2012 15:47:07 +0000 Subject: [PATCH] hopefully make the script more portable --- .../PX/tests/px-common-testbeds.sh | 25 ++++++++-------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/org.glite.testsuites.ctb/PX/tests/px-common-testbeds.sh b/org.glite.testsuites.ctb/PX/tests/px-common-testbeds.sh index 729c8be..e393d0b 100755 --- a/org.glite.testsuites.ctb/PX/tests/px-common-testbeds.sh +++ b/org.glite.testsuites.ctb/PX/tests/px-common-testbeds.sh @@ -21,6 +21,13 @@ function gen_arrange_script_px() remotehost=$1 COPYPROXY=$2 +egrep -i "Debian|Ubuntu" /etc/issue +if [ \$? = 0 ]; then + INSTALLCMD="apt-get install -q --yes" +else + INSTALLCMD="yum install -q -y" +fi + cat << EndArrangeScript > arrange_px_test_root.sh CERTFILE=\$1 GLITE_USER=\$2 @@ -34,10 +41,7 @@ echo "Output format: \$OUTPUT_OPT " export PXTSTCOLS -yum install -q -y globus-proxy-utils -yum install -q -y voms-clients -yum install -q -y curl -yum install -q -y wget +${INSTALLCMD} globus-proxy-utils voms-clients curl wget emi-voms-mysql xml-commons-apis cd /tmp @@ -45,14 +49,7 @@ CVSPATH=\`which cvs\` if [ "\$CVSPATH" = "" ]; then printf "CVS binary not present" - egrep -i "Debian|Ubuntu" /etc/issue - - if [ \$? = 0 ]; then - apt-get install --yes cvs - else - yum install -y cvs - fi - + ${INSTALLCMD} globus-proxy-utils voms-clients curl wget fi glite_id=\`id -u \$GLITE_USER\` @@ -74,10 +71,6 @@ else fi fi - -yum install -y emi-voms-mysql -yum install -y xml-commons-apis - service mysqld start /usr/bin/mysqladmin -u root password [Edited]; -- 1.8.2.3