Github user trixpan commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/1422#discussion_r96322520
  
    --- Diff: nifi-assembly/pom.xml ---
    @@ -19,6 +19,10 @@ language governing permissions and limitations under the 
License. -->
         <artifactId>nifi-assembly</artifactId>
         <packaging>pom</packaging>
         <description>This is the assembly Apache NiFi</description>
    +    <!--Add a blank run.as in case RPM isn't being used -->
    +    <properties>
    +        <nifi.run.as />
    --- End diff --
    
    I got what you are saying. 
    
    The challenge is that the run.as user comes from a pom attribute before the 
RPM creation is started, meaning the the build-root used by the RPM packager 
already contains the correct run.as 
    
    The sequence seems to be:
    
    If -Prpm is enable used the line you highlighted above, if not, use 
https://github.com/apache/nifi/blob/master/nifi-assembly/pom.xml#L429
    
    The only other way I imagine being possible would be using sed to replace 
the `run.as=` with `run.as=nifi` prior to RPM the built-root folder?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to