You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by "Aldrin Piri (JIRA)" <ji...@apache.org> on 2016/04/27 21:24:12 UTC

[jira] [Updated] (NIFI-1817) nifi.sh doesn't respect comments when setting run_as user

     [ https://issues.apache.org/jira/browse/NIFI-1817?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aldrin Piri updated NIFI-1817:
------------------------------
    Affects Version/s: 0.6.1

> nifi.sh doesn't respect comments when setting run_as user
> ---------------------------------------------------------
>
>                 Key: NIFI-1817
>                 URL: https://issues.apache.org/jira/browse/NIFI-1817
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 0.6.1
>            Reporter: Brandon DeVries
>            Assignee: Aldrin Piri
>            Priority: Minor
>             Fix For: 1.0.0, 0.7.0
>
>
> In nifi.sh\[1\], the run_as user is set using the following line:
> {code}
> run_as=$(grep run.as "${BOOTSTRAP_CONF}" | cut -d'=' -f2)
> {code}
> However, this does not respect a commented out "run.as" line in bootstrap.conf.  To fix, we need to do something like:
> {code}
> run_as=$(grep run.as "${BOOTSTRAP_CONF}" | grep -v '^#' | cut -d'=' -f2)
> {code}
> That will disallow any lines that start with a "#".
> \[1\] https://github.com/apache/nifi/blob/e4b7e47836edf47042973e604005058c28eed23b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-resources/src/main/resources/bin/nifi.sh#L167



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)