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 order
to do system configuration. That can work. It seems seductive. I
used to do it that way too. But after having done it that way I now
do it differently. There are just too many issues. The task really
isn't a package installation so much as system configuration. So now
I use a system configuration tool.
I actually use my own system configuration tool. I know it best. But
in the larger world the standard tools are cfengine, puppet, chef. I
recommend you look at puppet as the place to start. There is a large
community around it and it is quite effective.
So that is my opinion and recommendation. Avoid the problems of
working within a packaged space and instead use a system configuration
tool. It is a much better match. You will eventually change to it
anyway so you might as well get there sooner. :-)
> 2. ssh-keygen with no user input ("Enter passphrase")
No one has mentioned the ssh-keygen -N new_passphrase option yet.
Bob
Attachment:
signature.asc
Description: Digital signature