Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] RFC: enewuser should force updates to shell and home
Date: Wed, 13 Jun 2012 19:15:40
Message-Id: 201206131514.51074.vapier@gentoo.org
In Reply to: Re: [gentoo-dev] RFC: enewuser should force updates to shell and home by Ian Stakenvicius
On Wednesday 13 June 2012 15:11:19 Ian Stakenvicius wrote:
> On 13/06/12 03:04 PM, Mike Frysinger wrote: > > we have egetshell and egethome already. thus it's fairly easy to > > detect the transition case. if they installed the older version > > which set values that you now want to change: if has_version > > '<foo/pkg-3' && [[ $(egetshell user) == "/bad/shell" ]] ; then > > esetshell user /good/shell fi if has_version '<foo/pkg-3' && [[ > > $(egethome user) == "/old/home" ]] ; then esethome user /new/home > > fi > > This makes sense to me. Until I can think of a nice way to detect a > change from the default settings set by a previous enewuser call, it > is probably best to require each ebuild to do the above based on their > specific need. > > Patch/RFC rescinded.
eset{home,shell} don't exist today, so you should implement them :) -mike

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] RFC: esethome Ian Stakenvicius <axs@g.o>