From: Zdeněk Šustr Date: Mon, 7 Nov 2011 15:37:57 +0000 (+0000) Subject: Interpret variables at the right time X-Git-Tag: merge_30_head_take2_dst~70 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=a25cf0965a5aabe2b632d7be176b0e4d789be84b;p=jra1mw.git Interpret variables at the right time --- diff --git a/org.glite.testsuites.ctb/LB/tests/lb-common-testbeds.sh b/org.glite.testsuites.ctb/LB/tests/lb-common-testbeds.sh index 8db2a5b..3851c56 100755 --- a/org.glite.testsuites.ctb/LB/tests/lb-common-testbeds.sh +++ b/org.glite.testsuites.ctb/LB/tests/lb-common-testbeds.sh @@ -89,9 +89,9 @@ else fi #Allow glite user to read certain system files. Talk about dirty hacks. -grep -E "$GLITE_USER.*/bin/cat" /etc/sudoers > /dev/null 2> /dev/null +grep -E "\$GLITE_USER.*/bin/cat" /etc/sudoers > /dev/null 2> /dev/null if [ ! \$? = 0 ]; then - printf "\n$GLITE_USER\tALL=NOPASSWD: /bin/cat /etc/cron.d/glite-lb-purge.cron,/bin/cat /var/log/messages\n\n" >> /etc/sudoers + printf "\n\$GLITE_USER\tALL=NOPASSWD: /bin/cat /etc/cron.d/glite-lb-purge.cron,/bin/cat /var/log/messages\n\n" >> /etc/sudoers fi sed -i /etc/sudoers 's/^Default\srequiretty/#Default requiretty/'