I think that this is where the use of the "alternatives" program would prove useful. In debian or ubuntu, I believe the command is "update-alternatives --config java"
HTH Dimitri On Thursday 02 August 2012 6:15:57 pm George Kirkham wrote: > Hi, > > > > I had problems when I “5) install openoffice.org instead of all its parts” > because installing full OpenOffice altered the java package to OpenJRE and > I was unable to use sun java. > > > > Thanks, > > > > George Kirkham > > > > > > > > From: Stephen Cottham [mailto:[email protected]] > Sent: Friday, 3 August 2012 3:48 AM > To: [email protected] > Subject: RE: Latest Installer - Debian & Ubuntu (For Testing and Comments) > > > > Thanks Maxim, > > > > Don’t apologies mate all good comments J - I’ll add them in. > > > > Cheers > > > > From: Maxim Solodovnik [mailto:[email protected]] > Sent: 02 August 2012 18:43 > To: [email protected] > Subject: Re: Latest Installer - Debian & Ubuntu (For Testing and Comments) > > > > I would improve the following: > > 1) add check if script is running as root > > 2) add variable so one can easily change /usr/adm to /opt :) > > 3) Add debian/ubuntu autodetect > > 4) add keytool to alternatives > > 5) install openoffice.org instead of all its parts > > 6) install swftools as deb package based on architecture > > 7) move all users/passwords to variables > > 8) move downloading and unarchiving of jodconverter to the correspondent > section of the script > > 9) remove ant/checkout/compile and replace it with downloading of OM binary > 10) replace manual persistence.xml patching and web installer with command > line admin (1 line command to select correct DB and install) > > 11) I would create functions for common actions like mysql installation > etc. > > > sorry for so much corrections :))) > > On Fri, Aug 3, 2012 at 12:28 AM, Stephen Cottham > <[email protected]> wrote: > > Hi All, > > > > Find attached the latest Installer, now has a menu for Debian and Ubuntu > Installs and an Upgrade option. > > > > This is for testing and comments, PHP has been removed as shown by Jakub in > favour of the much simpler two liner and happy for anyone to suggest better > more efficient changes. > > > > Debian runs thru ok at this stage as does the Upgrade, the Ubuntu still > needs some user intervention thru the install process which I’ll work on > later (maybe use expect ) > > > > I’ll incorporate Jakubs improvements once I get his latest contribution, > from his last script looks like he will be adding error detection and > detection of number of cores to speed up compilation and general clean-up > etc.. – and anything else he adds (or anyone else wants to add) in the > mean-time. > > > > I’ll add the SVN folder “scripts” tomorrow as suggested by Sebastian to > keep this stuff in one location. > > > > Best Regards > > > > > > Stephen Cottham > Group IT Manager (Associate) > > Robert Bird Group > Level 5, 333 Ann St > Brisbane, Queensland, 4000, Australia > > Phone: +6173 319 2777 (AUS) > > Phone: +44207 592 8000 (UK) > > Fax: +6173 319 2799 > > > > Mobile: +61400 756 963 (AUS) > > Mobile: +447900 918 616 (UK) > > Web: www.robertbird.com <http://www.robertbird.com/> > > <http://www.robertbird.com.au/> > > This email and any attachments are confidential and may contain legally > privileged information or copyright material. Unless expressly stated, > confidentiality and/or legal privilege is not intended to be waived by the > sending of this email. The contents of this email, including any > attachments, are intended solely for the use of the individual or entity to > whom they are addressed. If you are not an intended recipient, please > contact us immediately by return email and then delete both messages. You > may not otherwise read, forward, copy, use or disclose this email or any > attachments. Any views expressed in this email are those of the individual > sender except where the sender expressly, and with authority, states > otherwise. It is your responsibility to check any attachments for viruses > or defects before opening or sending them on. None of the sender or its > related entities accepts any liability for any consequential damage > resulting from this email containing computer viruses. > > > > > Disclaimer added by CodeTwo Exchange Rules > www.codetwo.com > > > > > > > > > > -- > WBR > Maxim aka solomax -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
