LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   script to install firebird database in debian and not die on the road (https://www.linuxquestions.org/questions/debian-26/script-to-install-firebird-database-in-debian-and-not-die-on-the-road-612516/)

jachguate 01-10-2008 12:27 AM

script to install firebird database in debian and not die on the road
 
Hi.

If you're having problems to install and run firebird in debian, you can get a script to install firebird in debian (Spanish site).

I'm the author of the post and the script. Please, fell free to send feedback about it.

I'm too interested to know if someone has a success story using the official packages.

Cheers.

Dutch Master 01-10-2008 05:45 PM

Looks OK to me. Out of curiosity: why are to cd-ing to /root? Apt-get and aptitude work fine from any directory. Next: you use apt-get. Nothing wrong with that, but aptitude is the preferred tool for installing and upgrading in Etch. You could expand the script to use the users locale setting to offer the text in the echo statement in the prefered language. That way your script can be useful (read as: understandable) for non-Spanish speakers too :)

Good work, keep up!

jachguate 01-10-2008 06:12 PM

Quote:

Originally Posted by Dutch Master (Post 3018358)
Looks OK to me. Out of curiosity: why are to cd-ing to /root? Apt-get and aptitude work fine from any directory.

I know... it's a mistake, I will update the script to avoid this (bad) thing. Please, answer me about localization, (next^2).

Quote:

Originally Posted by Dutch Master (Post 3018358)
Next: you use apt-get. Nothing wrong with that, but aptitude is the preferred tool for installing and upgrading in Etch.

I have no idea of that (the preferred thing), and I feel comfortable with apt-get. :D

Quote:

Originally Posted by Dutch Master (Post 3018358)
You could expand the script to use the users locale setting to offer the text in the echo statement in the prefered language. That way your script can be useful (read as: understandable) for non-Spanish speakers too :)

How can I do that?

[sarcastic]
On the other hand... non-English-speaker people are most of the time learning English because the error messages (and often the entire applications) are available only in this language. Some Spanish splash is Ok sometimes :D:D
[/sarcastic]

Quote:

Originally Posted by Dutch Master (Post 3018358)
Good work, keep up!

Thanks, I will. :)

Dutch Master 01-10-2008 07:09 PM

You'll find the installed locale in /etc/locale.gen and use that to build in an option to select a specific langauge the echo statement is displayed. I'm not familiar on how to make such a large number of options available in a script, but I imagine it to be like this:
Code:

if $(locale) != en then check for es, fr, de, nl, else echo "you'll need to be root to use this script" endif
But then understandable for bash ;)

The Debian dev's state that aptitude is so much better then apt-get in conflict resolving, they advise strongly in using aptitude over apt-get. That means that users who use aptitude cannot use your script as this may cause conflict with aptitude. I suggest to mention the usage of apt-get in your script, allowing aptitude users to either change the script to match their use of package management (which comes down to changing all references to apt-get into aptitude) or don't use it altogether. But, it's your script :)


All times are GMT -5. The time now is 06:23 AM.