Gentoo Archives: gentoo-dev

From: Ian Stakenvicius <axs@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:12:10
Message-Id: 4FD8E5D7.3000402@gentoo.org
In Reply to: Re: [gentoo-dev] RFC: enewuser should force updates to shell and home by Mike Frysinger
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA256
3
4 On 13/06/12 03:04 PM, Mike Frysinger wrote:
5 >
6 > we have egetshell and egethome already. thus it's fairly easy to
7 > detect the transition case. if they installed the older version
8 > which set values that you now want to change: if has_version
9 > '<foo/pkg-3' && [[ $(egetshell user) == "/bad/shell" ]] ; then
10 > esetshell user /good/shell fi if has_version '<foo/pkg-3' && [[
11 > $(egethome user) == "/old/home" ]] ; then esethome user /new/home
12 > fi -mike
13
14
15
16 This makes sense to me. Until I can think of a nice way to detect a
17 change from the default settings set by a previous enewuser call, it
18 is probably best to require each ebuild to do the above based on their
19 specific need.
20
21 Patch/RFC rescinded.
22 -----BEGIN PGP SIGNATURE-----
23 Version: GnuPG v2.0.17 (GNU/Linux)
24
25 iF4EAREIAAYFAk/Y5dcACgkQ2ugaI38ACPB9gQD/T3xPVAFfQCPGSuutLx/JwBnk
26 NCV/v5fn76iAVM2vTNsA/jms8yh7v/n1R5WwcAxmw4Ong+y7ufUMDq4jDNE6jJa5
27 =+sgH
28 -----END PGP SIGNATURE-----

Replies