openerpappliance.com Forum - Support Community
March 29, 2024, 10:37:42 am
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to SMF For Free
 
  Home Help Search Gallery Staff List Members Login Register  

Instalation of Java Runtime in OpenOffice function of all-in-one-script

Pages: [1]
  Print  
Author Topic: Instalation of Java Runtime in OpenOffice function of all-in-one-script  (Read 493 times)
goranc
Guest
« on: November 15, 2010, 05:22:51 pm »

There is validation part of script where checking of existence of Java Runtime installation is not correct.
awk "/installed/" will return true for "State: installed" and for "State: not installed"
it should be awk "/: installed/" to work correctly Wink

g.c.
Report Spam   Logged

Share on Facebook Share on Twitter

I. Fernandez (forum admin)
Administrator
Full Member
*****
Posts: 166



WWW
« Reply #1 on: November 21, 2010, 08:00:48 pm »

Hi Goranc,

Thanks for your tip although I don't agree with you after testing it:

# Checking if java6 is already set up:
showjava6state=$(aptitude show sun-java6-bin | grep State)
JAVA6INSTALL=$(echo $showjava6state | awk '/installed/')

Note that $showjava6state will have an empty value when sun-java6-bin package is not installed on the system.

aptitude will print the following message on console (via standard error):

E: Unable to locate package sun-java6-bin



Report Spam   Logged

I. Fernandez
Senior IT Systems Engineer
Madrid, Spain

Blog: http://openerpappliance.com

Pages: [1]
  Print  
 
Jump to:  

Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum


Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy