openerpappliance.com Forum - Support Community
March 29, 2024, 10:37:42 am
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
Forever
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
openerpappliance.com Forum - Support Community
>
Forum
>
OpenERP All-In-One for Linux
>
English Forum
>
Instalation of Java Runtime in OpenOffice function of all-in-one-script
Pages: [
1
]
« previous
next »
Print
Author
Topic: Instalation of Java Runtime in OpenOffice function of all-in-one-script (Read 493 times)
goranc
Guest
Instalation of Java Runtime in OpenOffice function of all-in-one-script
«
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
g.c.
Report Spam
Logged
I. Fernandez (forum admin)
Administrator
Full Member
Posts: 166
Re: Instalation of Java Runtime in OpenOffice function of all-in-one-script
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Purchase of OpenERP Appliances / Compra de OpenERP Appliance
-----------------------------
=> English Forum
=> Spanish Forum
-----------------------------
OpenERP Appliance
-----------------------------
=> English Forum
=> Spanish Forum
-----------------------------
OpenERP All-In-One for Linux
-----------------------------
=> English Forum
=> Spanish Forum
-----------------------------
Magento installer
-----------------------------
=> English Forum
=> Spanish Forum
Powered by
EzPortal
Loading...