craigwblake / redline

Pure Java Rpm Library
http://redline-rpm.org
MIT License
128 stars 97 forks source link

Issue with TarFileSet permission settings #44

Open bdasilva opened 10 years ago

bdasilva commented 10 years ago

Hi,

First of all, thanks for this plugin which is quiet usefull for rpms deployment.

I have an issue while trying to set up permission within a tarfile. When installing the rpm with the root user, I have the folowing warning :

[root@install_medintegr]# rpm -ihv application-test-0.0.1-1.noarch.rpm Preparing... ########################################### [100%] 1:application-test warning: user "jboss" does not exist - using root warning: group "jboss" does not exist - using root warning: user "jboss" does not exist - using root warning: group "jboss" does not exist - using root warning: user "jboss" does not exist - using root warning: group "jboss" does not exist - using root warning: user "jboss" does not exist - using root warning: group "jboss" does not exist - using root

[100%]

Still, my jboss user exists : [root@install_medintegr]# id jboss uid=4500(jboss) gid=4500(jboss) groups=4500(jboss)

I assume i can still find a workaround with a post script, but it would be cleaner to do it though the configuration of reline lib.

BR/

bdasilva commented 10 years ago

Ok I found the hit.

I'm compiling the rpm in a windows environment. It seems that if the user specified in the rpm plug-in configuration file does not exit in that environment it will fail while deploying the rpm in the target server.. In any case, it won't work for me given that I need to parameter any type of user without creating it first in theserver where the rpm is compiled.. So I assume the post script is only remaining solution.