Re: [gentoo-dev] RFC: enewuser should force updates to shell and home

2012-06-13 Thread Mike Frysinger
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 ha

Re: [gentoo-dev] RFC: enewuser should force updates to shell and home

2012-06-13 Thread Ian Stakenvicius
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 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 > ' e

Re: [gentoo-dev] RFC: enewuser should force updates to shell and home

2012-06-13 Thread Mike Frysinger
On Wednesday 13 June 2012 14:32:22 Ian Stakenvicius wrote: > On 13/06/12 02:09 PM, Fabian Groffen wrote: > > On 13-06-2012 12:00:16 -0400, Ian Stakenvicius wrote: > >> Hey all - I'd like to propose that enewuser forces updates to a > >> user's home dir and shell whenever it is called, so that if th

Re: [gentoo-dev] RFC: enewuser should force updates to shell and home

2012-06-13 Thread Mike Gilbert
On 6/13/2012 2:32 PM, Ian Stakenvicius wrote: > On 13/06/12 02:09 PM, Fabian Groffen wrote: >> On 13-06-2012 12:00:16 -0400, Ian Stakenvicius wrote: >>> Hey all - I'd like to propose that enewuser forces updates to a >>> user's home dir and shell whenever it is called, so that if this >>> changes w

Re: [gentoo-dev] RFC: enewuser should force updates to shell and home

2012-06-13 Thread Ian Stakenvicius
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 13/06/12 02:45 PM, Ian Stakenvicius wrote: > On 13/06/12 01:21 PM, Ian Stakenvicius wrote: >> On 13/06/12 01:19 PM, Michał Górny wrote: >>> On Wed, 13 Jun 2012 12:00:16 -0400 Ian Stakenvicius >>> wrote: > + ### force updates

Re: [gentoo-dev] RFC: enewuser should force updates to shell and home

2012-06-13 Thread Ian Stakenvicius
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 13/06/12 01:21 PM, Ian Stakenvicius wrote: > On 13/06/12 01:19 PM, Michał Górny wrote: >> On Wed, 13 Jun 2012 12:00:16 -0400 Ian Stakenvicius >> wrote: > >>> + ### force updates of some user properties + >>> usermod -d "${ehome}"

Re: [gentoo-dev] RFC: enewuser should force updates to shell and home

2012-06-13 Thread Ian Stakenvicius
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 13/06/12 02:09 PM, Fabian Groffen wrote: > On 13-06-2012 12:00:16 -0400, Ian Stakenvicius wrote: >> Hey all - I'd like to propose that enewuser forces updates to a >> user's home dir and shell whenever it is called, so that if this >> changes with

Re: [gentoo-dev] RFC: enewuser should force updates to shell and home

2012-06-13 Thread Ian Stakenvicius
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 13/06/12 02:18 PM, Mike Gilbert wrote: > On 6/13/2012 12:00 PM, Ian Stakenvicius wrote: >> Hey all - I'd like to propose that enewuser forces updates to a >> user's home dir and shell whenever it is called, so that if this >> changes with new vers

Re: [gentoo-dev] RFC: enewuser should force updates to shell and home

2012-06-13 Thread Samuli Suominen
On 06/13/2012 09:18 PM, Mike Gilbert wrote: On 6/13/2012 12:00 PM, Ian Stakenvicius wrote: Hey all - I'd like to propose that enewuser forces updates to a user's home dir and shell whenever it is called, so that if this changes with new versions of an ebuild it is dealt with automatically rather

Re: [gentoo-dev] RFC: enewuser should force updates to shell and home

2012-06-13 Thread Mike Gilbert
On 6/13/2012 12:00 PM, Ian Stakenvicius wrote: > Hey all - I'd like to propose that enewuser forces updates to a user's > home dir and shell whenever it is called, so that if this changes with > new versions of an ebuild it is dealt with automatically rather than > having to modify them in pkg_post

Re: [gentoo-dev] RFC: enewuser should force updates to shell and home

2012-06-13 Thread Fabian Groffen
On 13-06-2012 12:00:16 -0400, Ian Stakenvicius wrote: > Hey all - I'd like to propose that enewuser forces updates to a user's > home dir and shell whenever it is called, so that if this changes with > new versions of an ebuild it is dealt with automatically rather than > having to modify them in p

Re: [gentoo-dev] RFC: enewuser should force updates to shell and home

2012-06-13 Thread Ian Stakenvicius
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 13/06/12 01:19 PM, Michał Górny wrote: > On Wed, 13 Jun 2012 12:00:16 -0400 Ian Stakenvicius > wrote: > >> + ### force updates of some user properties + >> usermod -d "${ehome}" "${euser}" || die + usermod >> -s "$

Re: [gentoo-dev] RFC: enewuser should force updates to shell and home

2012-06-13 Thread Michał Górny
On Wed, 13 Jun 2012 12:00:16 -0400 Ian Stakenvicius wrote: > + ### force updates of some user properties > + usermod -d "${ehome}" "${euser}" || die > + usermod -s "${eshell}" "${euser}" || die I think usermod can handle multiple arguments. -- Best reg