Re: help with packaging (preinst scripts)

2012-08-23 Thread David Cho-Lerat
Hi Bob, It sounds like you are trying to use a package installation in order to do system configuration. basically, to set up the software and all the system configuration around it, yes. That can work. It seems seductive. I used to do it that way too. But after having done it that way I

help with packaging (preinst scripts)

2012-08-22 Thread David Cho-Lerat
Hi all, I've done some RTFM, but can't yet find where the helper scripts to use in maintainer scripts (preinst/postrm/..) are described. How does one automate the following in the preinst scripts, for instance : 1. create a user *and* set their password 2. ssh-keygen with no user input (Enter

Re: help with packaging (preinst scripts)

2012-08-22 Thread Jon Dowland
On Wed, Aug 22, 2012 at 02:54:44PM +0200, David Cho-Lerat wrote: Hi all, I've done some RTFM, but can't yet find where the helper scripts to use in maintainer scripts (preinst/postrm/..) are described. How does one automate the following in the preinst scripts, for instance : 1.

Re: help with packaging (preinst scripts)

2012-08-22 Thread David Cho-Lerat
Thanks a lot for your answers. I know this looks ugly, but don't worry it's not really meant for Debian, I'm working on our of our company's packages ;) that doesn't sound like a great idea. What are you doing? well actually the package will install some software that has to be run by a

Re: help with packaging (preinst scripts)

2012-08-22 Thread Karl E. Jorgensen
Hi On Wed, Aug 22, 2012 at 01:54:44PM +0100, David Cho-Lerat wrote: Hi all, I've done some RTFM, but can't yet find where the helper scripts to use in maintainer scripts (preinst/postrm/..) are described. How does one automate the following in the preinst scripts, for instance :

Re: help with packaging (preinst scripts)

2012-08-22 Thread Karl E. Jorgensen
On Wed, Aug 22, 2012 at 02:20:35PM +0100, David Cho-Lerat wrote: Thanks a lot for your answers. I know this looks ugly, but don't worry it's not really meant for Debian, I'm working on our of our company's packages ;) that doesn't sound like a great idea. What are you doing?

Re: help with packaging (preinst scripts)

2012-08-22 Thread Denis Witt
On 22.08.2012 15:20, David Cho-Lerat wrote: well actually the package will install some software that has to be run by a specific user, and this user has to have a password so that some admins can log into the account for specific tasks, but not every user of the system. Hi David, you can

Re: help with packaging (preinst scripts)

2012-08-22 Thread Roger Leigh
On Wed, Aug 22, 2012 at 02:54:44PM +0200, David Cho-Lerat wrote: 3. add/edit some MySQL tables without knowing the MySQL root password I've fooled around with Expect for 1. and 2., and tried mysqld_safe --skip-grant-tables for 3., but I feel lame (and I have to have my preinst script

Re: help with packaging (preinst scripts)

2012-08-22 Thread David Cho-Lerat
Hi Karl, thanks for your answers Pre-inst? It is quite uncommon do need to do much in the PRE-installation script. Most things end up in the post-installation scripts - e.g. many of the existing packages which create users do so in their post-installation scripts. yes I suppose what is

Re: help with packaging (preinst scripts)

2012-08-22 Thread David Cho-Lerat
Hi David, Hi Denis you can create the user as shown in the exim example. The Admins can login with their normal users (or as root) and can su to the user: su - yourusername --shell=/bin/bash see, that's the thing : the Admins of the application set up by this package don't have an account

Re: help with packaging (preinst scripts)

2012-08-22 Thread David Cho-Lerat
Le 22/08/2012 15:42, Roger Leigh a écrit : On Wed, Aug 22, 2012 at 02:54:44PM +0200, David Cho-Lerat wrote: 3. add/edit some MySQL tables without knowing the MySQL root password I've fooled around with Expect for 1. and 2., and tried mysqld_safe --skip-grant-tables for 3., but I feel lame

Re: help with packaging (preinst scripts)

2012-08-22 Thread Bob Proulx
David Cho-Lerat wrote: I've done some RTFM, but can't yet find where the helper scripts to use in maintainer scripts (preinst/postrm/..) are described. How does one automate the following in the preinst scripts, for instance : It sounds like you are trying to use a package installation in