* Marc Kleine-Budde <[email protected]> [08.01.2010 00:10]: > [email protected] wrote: > > From: Carsten Schlote <[email protected]> > > > > The postinst scripts seem to have problem with ubuntu. > > As we have bash on our target, we can use bash here. > > but I don't have :P > > Marc > > > > Signed-off-by: Carsten Schlote <[email protected]> > > --- > > rules/busybox.postinst | 2 +- > > rules/cvs.postinst | 2 +- > > rules/dnsmasq.postinst | 2 +- > > rules/fam.postinst | 2 +- > > rules/inetutils.postinst | 2 +- > > rules/portmap.postinst | 2 +- > > rules/pureftpd.postinst | 2 +- > > rules/rsync.postinst | 2 +- > > rules/urshd.postinst | 2 +- > > 9 files changed, 9 insertions(+), 9 deletions(-) > > > > diff --git a/rules/busybox.postinst b/rules/busybox.postinst > > index 6f56479..ff796a8 100644 > > --- a/rules/busybox.postinst > > +++ b/rules/busybox.postinst > > @@ -1,4 +1,4 @@ > > -#!/bin/sh > > +#!/bin/bash > > > > # generate inetd.conf > > if [ -d $DESTDIR/etc/inetd.conf.d ] && > > diff --git a/rules/cvs.postinst b/rules/cvs.postinst > > index 6f56479..ff796a8 100644 > > --- a/rules/cvs.postinst > > +++ b/rules/cvs.postinst > > @@ -1,4 +1,4 @@ > > -#!/bin/sh > > +#!/bin/bash > > > > # generate inetd.conf > > if [ -d $DESTDIR/etc/inetd.conf.d ] && > > diff --git a/rules/dnsmasq.postinst b/rules/dnsmasq.postinst > > index 6f56479..ff796a8 100644 > > --- a/rules/dnsmasq.postinst > > +++ b/rules/dnsmasq.postinst > > @@ -1,4 +1,4 @@ > > -#!/bin/sh > > +#!/bin/bash > > > > # generate inetd.conf > > if [ -d $DESTDIR/etc/inetd.conf.d ] && > > diff --git a/rules/fam.postinst b/rules/fam.postinst > > index 6f56479..ff796a8 100644 > > --- a/rules/fam.postinst > > +++ b/rules/fam.postinst > > @@ -1,4 +1,4 @@ > > -#!/bin/sh > > +#!/bin/bash > > > > # generate inetd.conf > > if [ -d $DESTDIR/etc/inetd.conf.d ] && > > diff --git a/rules/inetutils.postinst b/rules/inetutils.postinst > > index 6f56479..ff796a8 100644 > > --- a/rules/inetutils.postinst > > +++ b/rules/inetutils.postinst > > @@ -1,4 +1,4 @@ > > -#!/bin/sh > > +#!/bin/bash > > > > # generate inetd.conf > > if [ -d $DESTDIR/etc/inetd.conf.d ] && > > diff --git a/rules/portmap.postinst b/rules/portmap.postinst > > index 6f56479..ff796a8 100644 > > --- a/rules/portmap.postinst > > +++ b/rules/portmap.postinst > > @@ -1,4 +1,4 @@ > > -#!/bin/sh > > +#!/bin/bash > > > > # generate inetd.conf > > if [ -d $DESTDIR/etc/inetd.conf.d ] && > > diff --git a/rules/pureftpd.postinst b/rules/pureftpd.postinst > > index 6f56479..ff796a8 100644 > > --- a/rules/pureftpd.postinst > > +++ b/rules/pureftpd.postinst > > @@ -1,4 +1,4 @@ > > -#!/bin/sh > > +#!/bin/bash > > > > # generate inetd.conf > > if [ -d $DESTDIR/etc/inetd.conf.d ] && > > diff --git a/rules/rsync.postinst b/rules/rsync.postinst > > index 6f56479..ff796a8 100644 > > --- a/rules/rsync.postinst > > +++ b/rules/rsync.postinst > > @@ -1,4 +1,4 @@ > > -#!/bin/sh > > +#!/bin/bash > > > > # generate inetd.conf > > if [ -d $DESTDIR/etc/inetd.conf.d ] && > > diff --git a/rules/urshd.postinst b/rules/urshd.postinst > > index 6f56479..ff796a8 100644 > > --- a/rules/urshd.postinst > > +++ b/rules/urshd.postinst > > @@ -1,4 +1,4 @@ > > -#!/bin/sh > > +#!/bin/bash > > > > # generate inetd.conf > > if [ -d $DESTDIR/etc/inetd.conf.d ] && > > > -- > Pengutronix e.K. | Marc Kleine-Budde | > Industrial Linux Solutions | Phone: +49-231-2826-924 | > Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | > Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de | > You have to link /bin/sh to /bin/bash instead of dash. Ubuntu uses dash instead of bash. It seems that there's some bashizm in the debian scripts and many people do not realize that they use a bash extension unless they're on a POSIX conform shell and use /bin/sh instead of /bin/bash. That's a common problem.
Regards, Frederik > -- > ptxdist mailing list > [email protected] ------------------------------------------------------------------------- Geschäftsführung: Klaus Blankenagel Karl-Heinz Malzahn Sitz der Gesellschaft: Ense Amtsgericht: Arnsberg HRB 4452 Diese Nachricht ist als vertraulich einzustufen. Sollten Sie nicht der vorgesehene Empfänger sein, bitten wir Sie höflich um eine kurze Mitteilung und um die Löschung dieser Nachricht. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulässig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails können wir keine Haftung für den Inhalt übernehmen. ------------------------------------------------------------------------- management: Klaus Blankenagel Karl-Heinz Malzahn based in: Ense competent country court: Arnsberg HRB 4452 This message is confidential and may be privileged. If you are not the intended recipient, we kindly ask you to inform the sender and delete this message. Any authorised dissemination or copying hereof is prohibited. This message servers for information purposes only and shall not have any legally binding effect. Given that e-mails can easily be subject to manipulation, we can not accept any liability for the content provided. -- ptxdist mailing list [email protected]
