[
http://jira.codehaus.org/browse/MRPM-21?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Brett Okken closed MRPM-21.
---------------------------
Resolution: Won't Fix
> 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
> Assignee: Brett Okken
> Original Estimate: 0 minutes
> Remaining Estimate: 0 minutes
>
> 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