|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
minor problem with "update.sh"Dear UNICORE-Support,
I've noticed a minor problem in the "update.sh" script (shipped with "unicore-servers-6.2.0-p1.tgz" and "unicore-servers-6.2.0.tgz"). The problem occured during an update-try on a server running "Ubuntu 8.04 LTS" and UNICORE6.1.3. Running the following command: "$ ./update.sh ../UNICORE6 --dry-run" gives me various errors (sadly not directly related to the line containing the problem): " [...] Updating Gateway ./update.sh: 136: [[: not found ./update.sh: 136: [[: not found ./update.sh: 136: [[: not found ./update.sh: 136: [[: not found ./update.sh: 136: [[: not found ./update.sh: 136: [[: not found ./update.sh: 136: [[: not found ./update.sh: 136: [[: not found [...] Updating UNICORE/X Deleting ../UNICORE6/unicorex/lib/xmlsec-1.4.1.jar ./update.sh: 163: [[: not found ./update.sh: 163: [[: not found [...] Updating Registry Deleting ../UNICORE6/registry/lib/xmlsec-1.4.1.jar ./update.sh: 192: [[: not found ./update.sh: 192: [[: not found Updating XUUDB ./update.sh: 209: [[: not found ./update.sh: 209: [[: not found ./update.sh: 209: [[: not found ./update.sh: 209: [[: not found [...] " The problem is twofold. The "update.sh" script uses a sha-bang line containing "/bin/sh" as command interpreter. And in line 101 the bash keyword "[[" is used. But in "Ubuntu 8.04 LTS" "/bin/sh" links to "/bin/dash" and not "/bin/bash". And "dash" doesn't support "[[". So either the sha-bang line should be changed to "#!/bin/bash" or line 101 should be changed to: "if [ "${oldversion}" != "${version}" ] ; then" Both solutions work as expected (at least for "dash" and "bash"). With kind regards, Frank Scheiner [scheiner.vcf] begin:vcard fn:Frank Scheiner n:Scheiner;Frank org:High Performance Computing Center Stuttgart (HLRS);Project User Management & Accounting adr:;;Allmandring 30;Stuttgart;BW;70569;Germany email;internet:scheiner@... tel;work:0711/685-87204 tel;fax:0711/685-65832 x-mozilla-html:FALSE url:www.hlrs.de version:2.1 end:vcard ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Unicore-support mailing list Unicore-support@... https://lists.sourceforge.net/lists/listinfo/unicore-support |
|
|
Re: minor problem with "update.sh"Hi,
yes, I had the same on ubuntu 9.04 ;-) just edit the first line of the script so it says #!/bin/bash not /bin/sh which is a different shell (not fully bash compatible) on Ubuntu. Best regards, Bernd. On Do, 2009-06-18 at 07:59 +0200, Frank Scheiner wrote: > Dear UNICORE-Support, > > I've noticed a minor problem in the "update.sh" script (shipped with > "unicore-servers-6.2.0-p1.tgz" and "unicore-servers-6.2.0.tgz"). The > problem occured during an update-try on a server running "Ubuntu 8.04 > LTS" and UNICORE6.1.3. Running the following command: > > "$ ./update.sh ../UNICORE6 --dry-run" > > gives me various errors (sadly not directly related to the line > containing the problem): > > " > [...] > Updating Gateway > ./update.sh: 136: [[: not found > ./update.sh: 136: [[: not found > ./update.sh: 136: [[: not found > ./update.sh: 136: [[: not found > ./update.sh: 136: [[: not found > ./update.sh: 136: [[: not found > ./update.sh: 136: [[: not found > ./update.sh: 136: [[: not found > [...] > Updating UNICORE/X > Deleting ../UNICORE6/unicorex/lib/xmlsec-1.4.1.jar > ./update.sh: 163: [[: not found > ./update.sh: 163: [[: not found > [...] > Updating Registry > Deleting ../UNICORE6/registry/lib/xmlsec-1.4.1.jar > ./update.sh: 192: [[: not found > ./update.sh: 192: [[: not found > Updating XUUDB > ./update.sh: 209: [[: not found > ./update.sh: 209: [[: not found > ./update.sh: 209: [[: not found > ./update.sh: 209: [[: not found > [...] > " > > The problem is twofold. The "update.sh" script uses a sha-bang line > containing "/bin/sh" as command interpreter. And in line 101 the bash > keyword "[[" is used. But in "Ubuntu 8.04 LTS" "/bin/sh" links to > "/bin/dash" and not "/bin/bash". And "dash" doesn't support "[[". > So either the sha-bang line should be changed to "#!/bin/bash" or > line 101 should be changed to: > "if [ "${oldversion}" != "${version}" ] ; then" > > Both solutions work as expected (at least for "dash" and "bash"). > > With kind regards, > Frank Scheiner > Dr. Bernd Schuller Distributed Systems and Grid Computing Juelich Supercomputing Centre, http://www.fz-juelich.de/jsc Phone: +49 246161-8736 (fax -8556) Personal blog: www.jroller.com/page/gridhaus ------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------ Forschungszentrum Juelich GmbH 52425 Juelich Sitz der Gesellschaft: Juelich Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498 Vorsitzende des Aufsichtsrats: MinDir'in Baerbel Brumme-Bothe Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender), Dr. Ulrich Krafft (stellv. Vorsitzender), Prof. Dr. Harald Bolt, Prof. Dr. Sebastian M. Schmidt ------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Unicore-support mailing list Unicore-support@... https://lists.sourceforge.net/lists/listinfo/unicore-support |
| Free embeddable forum powered by Nabble | Forum Help |