[Erp5-dev] ERP5's deb package does not rebuild /home/erp5 in case of total removal of /home/erp5

Tadeus Prastowo tadeus.prastowo at infi-nity.com
Fri Sep 18 04:34:54 CEST 2009


Hi Ho!

On Fri, 2009-09-18 at 02:33 +0400, Boris Kocherov wrote:
> On 09/17/09 12:22, Tadeus Prastowo wrote:
> > > > --- postrm	2009-09-16 17:07:23.000000000 +0700
> > > > +++ debian/postrm	2009-09-16 17:09:38.000000000 +0700
> > > > @@ -21,12 +21,12 @@
> > > >  case "$1" in
> > > >      purge)
> > > >          # remove zope user and group.
> > > > -        #    if getent passwd $erp5user > /dev/null 2>&1 ; then
> > > > -        #        userdel $erp5user
> > > > -        #    fi
> > > > -        #    if getent group $erp5group > /dev/null 2>&1 ; then
> > > > -        #        groupdel $erp5group
> > > > -        #    fi
> > > > +           if getent passwd $erp5user > /dev/null 2>&1 ; then
> > > > +               userdel $erp5user
> > > I aggree, but one note:
> > > userdel --remove $erp5user 
> > > for me seems better.
> > 
> > Does that mean that actually no user data is stored under /home/erp5
> > (i.e., all data is stored in the MySQL DB)?
> 
> That wrong.
> Mysql used for indexing only. Data stored in zodb.

Ah, okay. Thanks for pointing this out.

> > If yes, that's the best move.
> If distro upgrade only delete not purge package, that's best move without "if".

Better than that, instead of relying on the behavior of distro upgrade,
let's just use the method that some other packages use that is either
notifying the user that /home/erp5 as well as erp5 user and group are
left intact as well as the consequence of having so or asking the user
whether s/he wants to keep, move or delete his/her data
under /home/erp5/erp5-buildout/var.

What do you think?

-- 
Best regards,
Tadeus Prastowo (Free Software specialist and developer)

i n f i n i t y . s o l u t i o n (www.infi-nity.com) - pt. vikasa
infinity anugrah
bsd city sektor 14 - ruko golden madrid g/9 - tangerang 15321 -
indonesia
t: +62 (21) 5316 4796  f: +62 (21) 5316 4797




More information about the Erp5-dev mailing list