[asterisk-dev] [Code Review] non-root install for Asterisk

paul.belanger at polybeacon.com paul.belanger at polybeacon.com
Thu Jul 15 07:35:05 CDT 2010



> On 2010-07-15 03:46:31, Tzafrir Cohen wrote:
> > /trunk/sounds/Makefile, line 182
> > <https://reviewboard.asterisk.org/r/654/diff/4/?file=11544#file11544line182>
> >
> >     You can simplify those two:
> >     
> >     if [ "$(AST_USER)" != "" ] ; then
> >     	chown -R $(AST_USER):$(AST_GROUP) $(SOUNDS_DIR)
> >     	chown -R $(AST_USER):$(AST_GROUP) $(MOH_DIR)
> >     fi
> >     
> >     'chown $someuser: file' sets the group of that file to the default group of that user.

Let me do some testing.  Thanks.


> On 2010-07-15 03:46:31, Tzafrir Cohen wrote:
> > /trunk/configure.ac, line 514
> > <https://reviewboard.asterisk.org/r/654/diff/6/?file=11600#file11600line514>
> >
> >     This is not the right test.
> >     
> >     * Does not check the exact column
> >     * Does not check an exact name.
> >     
> >     Use:  '^{ast_user}:'
> >     
> >     * The user may actually not be a local user. Use 'getent passwd '${ast_user}'

Thanks, updated logic.  I did use getenv, but removed it recently.  I was not sure the portability of it.  Will add some logic to check for getenv and use it. 


- pabelanger


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/654/#review2390
-----------------------------------------------------------


On 2010-07-14 23:56:00, pabelanger wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/654/
> -----------------------------------------------------------
> 
> (Updated 2010-07-14 23:56:00)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Summary
> -------
> 
> Make Asterisk install as non-root, this is now the default behavior.
> 
> 3 new configure options:
> --with-user=uid
> --with-group=gid
> --enable-root
> 
> Various changes to Makefile, prefer install over mkdir, mv, chmod and chgrp.
> 
> 
> Diffs
> -----
> 
>   /trunk/Makefile 276612 
>   /trunk/Makefile.moddir_rules 276612 
>   /trunk/agi/Makefile 276612 
>   /trunk/configure.ac 276612 
>   /trunk/include/asterisk/autoconfig.h.in 276612 
>   /trunk/makeopts.in 276612 
>   /trunk/sounds/Makefile 276612 
> 
> Diff: https://reviewboard.asterisk.org/r/654/diff
> 
> 
> Testing
> -------
> 
> Much more testing required. Only tested with Ubuntu.
> 
> 
> Thanks,
> 
> pabelanger
> 
>




More information about the asterisk-dev mailing list