Bug#770224: Broken postinst script?

2014-11-28 Thread Francois Marier
Nevermind my last email, I got the wrong bug number :( -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20141128114157.go29...@akranes.dyndns.org

Bug#770224: Broken postinst script?

2014-11-28 Thread Francois Marier
t; configuration handling... This part of the postinst script could be made more robust to handle the case where the config file is missing: # Copy the passwd/group files to the TMP directory # to avoid warnings when rkhunter is first run. # This is normally done by the installer sc

Re: postinst script

2010-09-07 Thread Morgan Gangwere
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 7 Sep 2010 23:04:56 +0300 Zvi Dubitzky wrote: > Hi > > I have a command line in postinst script of a package that works ok > outside a package install context . > one line is causing an error : > > cat /proc/fil

Re: postinst script

2010-09-07 Thread Tomasz Muras
On Tue, Sep 7, 2010 at 9:04 PM, Zvi Dubitzky wrote: > Hi > > I have a command line in postinst script of a package that works ok > outside a package install context . > one line is causing an error : > > cat  /proc/file  | grep XY   > file > > without the grep

postinst script

2010-09-07 Thread Zvi Dubitzky
Hi I have a command line in postinst script of a package that works ok outside a package install context . one line is causing an error : cat /proc/file | grep XY > file without the grep - no error with the grep the postinstall terminates with error(below) . dpkg: error process

Re: Parallel invocation of postinst script causing a bug?

2006-11-06 Thread Kapil Hari Paranjape
Dear Frank, On Mon, 06 Nov 2006, Frank Küster wrote: > So it seems two postinst script were running at the same time (note that > tetex-bin depends on tetex-base). Furthermore, the second one seems to > have no parent except init, while the other one has "dpkg --configure > tet

Parallel invocation of postinst script causing a bug?

2006-11-06 Thread Frank Küster
all 6931 pts/11 R 11:09 \_ kpsewhich --var-value=TEXMFMAIN So it seems two postinst script were running at the same time (note that tetex-bin depends on tetex-base). Furthermore, the second one seems to have no parent except init, while the other one has "dpkg --confi

Re: Perl postinst script running external commands

2002-10-02 Thread Matt Zimmerman
On Tue, Oct 01, 2002 at 09:43:56AM +0200, Russell Coker wrote: > This is a good reason for not using debconf. > > The interface between a program and libraries it uses should be defined, and > it should be designed in a way to minimise harm to other programs. * #50595: debconf: Use of confm

Re: Perl postinst script running external commands

2002-10-02 Thread Matt Zimmerman
On Tue, Oct 01, 2002 at 09:43:56AM +0200, Russell Coker wrote: > This is a good reason for not using debconf. > > The interface between a program and libraries it uses should be defined, and > it should be designed in a way to minimise harm to other programs. * #50595: debconf: Use of conf

Re: Perl postinst script running external commands

2002-10-01 Thread Matthias Urlichs
Hi, Joey Hess: > Matthias Urlichs wrote: > > IMHO it's a good reason for not mixing configuration with execution, > > and it's an even better reason for fixing a bug in DebConf. Specifically, > > setting the Close-On-Exec flag on the file descriptor(s) which represent > > the DebConf protocol will

Re: Perl postinst script running external commands

2002-10-01 Thread Joey Hess
Matthias Urlichs wrote: > IMHO it's a good reason for not mixing configuration with execution, > and it's an even better reason for fixing a bug in DebConf. Specifically, > setting the Close-On-Exec flag on the file descriptor(s) which represent > the DebConf protocol will prevent all these problem

Re: Perl postinst script running external commands

2002-10-01 Thread Matthias Urlichs
Hi, Joey Hess: > Matthias Urlichs wrote: > > IMHO it's a good reason for not mixing configuration with execution, > > and it's an even better reason for fixing a bug in DebConf. Specifically, > > setting the Close-On-Exec flag on the file descriptor(s) which represent > > the DebConf protocol wil

Re: Perl postinst script running external commands

2002-10-01 Thread Joey Hess
Matthias Urlichs wrote: > IMHO it's a good reason for not mixing configuration with execution, > and it's an even better reason for fixing a bug in DebConf. Specifically, > setting the Close-On-Exec flag on the file descriptor(s) which represent > the DebConf protocol will prevent all these proble

Re: Perl postinst script running external commands

2002-10-01 Thread Russell Coker
On Tue, 1 Oct 2002 14:27, Matthias Urlichs wrote: > > but would not work for calling Debconf from Bash. > > You're right -- bash lacks this feature. However, the context of the > original question specifically mentioned Perl (or so I remember -- anyway, > it used backticks, and nobody would use bac

Re: Perl postinst script running external commands

2002-10-01 Thread Matthias Urlichs
Hi, Russell Coker: > Are you sure that it's possible to fix it in such a fashion? This might work > for Perl (I have never used the Perl interface so I don't know how it works), Perl could do it, no problem. > but would not work for calling Debconf from Bash. > You're right -- bash lacks thi

Re: Perl postinst script running external commands

2002-10-01 Thread Russell Coker
On Tue, 1 Oct 2002 13:11, Matthias Urlichs wrote: > Russell Coker: > > > More specifically, it has something to do with using backticks to start > > > an external command, and open file descriptors. You don't KNOW which > > > descriptor DebConf uses. > > > > This is a good reason for not using debc

Re: Perl postinst script running external commands

2002-10-01 Thread Matthias Urlichs
Hi, Russell Coker: > > More specifically, it has something to do with using backticks to start an > > external command, and open file descriptors. You don't KNOW which > > descriptor DebConf uses. > > This is a good reason for not using debconf. > IMHO it's a good reason for not mixing configura

Re: Perl postinst script running external commands

2002-10-01 Thread Russell Coker
On Tue, 1 Oct 2002 14:27, Matthias Urlichs wrote: > > but would not work for calling Debconf from Bash. > > You're right -- bash lacks this feature. However, the context of the > original question specifically mentioned Perl (or so I remember -- anyway, > it used backticks, and nobody would use ba

Re: Perl postinst script running external commands

2002-10-01 Thread Matthias Urlichs
Hi, Russell Coker: > Are you sure that it's possible to fix it in such a fashion? This might work > for Perl (I have never used the Perl interface so I don't know how it works), Perl could do it, no problem. > but would not work for calling Debconf from Bash. > You're right -- bash lacks th

Re: Perl postinst script running external commands

2002-10-01 Thread Russell Coker
On Tue, 1 Oct 2002 13:11, Matthias Urlichs wrote: > Russell Coker: > > > More specifically, it has something to do with using backticks to start > > > an external command, and open file descriptors. You don't KNOW which > > > descriptor DebConf uses. > > > > This is a good reason for not using deb

Re: Perl postinst script running external commands

2002-10-01 Thread Matthias Urlichs
Hi, Russell Coker: > > More specifically, it has something to do with using backticks to start an > > external command, and open file descriptors. You don't KNOW which > > descriptor DebConf uses. > > This is a good reason for not using debconf. > IMHO it's a good reason for not mixing configur

Re: Perl postinst script running external commands

2002-10-01 Thread Russell Coker
On Tue, 1 Oct 2002 09:25, Matthias Urlichs wrote: > > I have a perl postinst script that "gets stuck" when running certain > > external commands. For example, the line > > > > `/etc/init.d/apache restart >/dev/null 2>&1 3>&1 4>&1 5>&a

Re: Perl postinst script running external commands

2002-10-01 Thread Matthias Urlichs
Hi, Brian Nelson: > I have a perl postinst script that "gets stuck" when running certain > external commands. For example, the line > > `/etc/init.d/apache restart >/dev/null 2>&1 3>&1 4>&1 5>&1`; > > will freeze the postinst script

Perl postinst script running external commands

2002-10-01 Thread Brian Nelson
I have a perl postinst script that "gets stuck" when running certain external commands. For example, the line `/etc/init.d/apache restart >/dev/null 2>&1 3>&1 4>&1 5>&1`; will freeze the postinst script so that it must be killed. The problem has some

Re: Perl postinst script running external commands

2002-10-01 Thread Russell Coker
On Tue, 1 Oct 2002 09:25, Matthias Urlichs wrote: > > I have a perl postinst script that "gets stuck" when running certain > > external commands. For example, the line > > > > `/etc/init.d/apache restart >/dev/null 2>&1 3>&1 4>&1 5>&a

Re: Perl postinst script running external commands

2002-10-01 Thread Matthias Urlichs
Hi, Brian Nelson: > I have a perl postinst script that "gets stuck" when running certain > external commands. For example, the line > > `/etc/init.d/apache restart >/dev/null 2>&1 3>&1 4>&1 5>&1`; > > will freeze the postinst script

Perl postinst script running external commands

2002-09-30 Thread Brian Nelson
I have a perl postinst script that "gets stuck" when running certain external commands. For example, the line `/etc/init.d/apache restart >/dev/null 2>&1 3>&1 4>&1 5>&1`; will freeze the postinst script so that it must be killed. The problem has some

Creating a mysql database in a postinst script

1999-05-01 Thread Tonnesen Steve
Are there any examples of creating a mysql database in a postinst script anywhere? I'm having troubles with entering the password for: mysqladmin create dbname -p Any ideas for how I should handle this? I'm attempting to package an account administration system that I develope