[ 
http://jira.codehaus.org/browse/MRPM-21?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=205574#action_205574
 ] 

Brett Okken commented on MRPM-21:
---------------------------------

Just to make sure I understand what you are requesting, the plugin allows the 
ability to set user/group of all files contained in the rpm at build time. 
However, what you want is the ability to change the user/group of all of the 
files at install time?

> Support for defining uid and guid during rpm installation 
> ----------------------------------------------------------
>
>                 Key: MRPM-21
>                 URL: http://jira.codehaus.org/browse/MRPM-21
>             Project: Mojo RPM Plugin
>          Issue Type: Improvement
>          Components: rpm
>         Environment: linux (fedora and redhat) 
>            Reporter: Erik Drolshammer
>
> It would be nice if system administrators could set user and group during 
> installation. This could be realized as either 
> export RUN_AS_USER=application1User  
> export RUN_AS_GROUP=applicationGroup
> or with parameters to the rpm installation command. 
> My current workaround is: 
>             if [ "$RUN_AS_USER" = "" ]; then
>             echo Variable RUN_AS_USER not set, defaulting to root.
>             export RUN_AS_USER=root
>             fi
>             echo Changing ownership according to RUN_AS_USER=$RUN_AS_USER
>             chown -Rc $RUN_AS_USER $RPM_INSTALL_PREFIX
>             echo chmod ug+x on directories in $RPM_INSTALL_PREFIX
>             find $RPM_INSTALL_PREFIX -type d -exec chmod -c ug+x {} \;  
> The  variable RUN_AS_USER was chosen because this variable is read by Java 
> Service Wrapper scripts generated with appassembler-maven-plugin. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to