From: Zdeněk Šustr Date: Mon, 6 Feb 2012 15:47:07 +0000 (+0000) Subject: hopefully make the script more portable X-Git-Tag: gridsite-core_R_1_7_17~126 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=376c31ea8b07fa2739fbd14e1f7530efce85776a;p=jra1mw.git hopefully make the script more portable --- 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];