mirror of https://github.com/apache/nifi.git
NIFI-3815 This closes #1763. Fix build RPM using mvn install -Prpm,generateArchives
Signed-off-by: joewitt <joewitt@apache.org>
This commit is contained in:
parent
5f65b2561a
commit
d069bf9c3e
|
@ -522,17 +522,13 @@
|
||||||
<configuration>
|
<configuration>
|
||||||
<name>nifi</name>
|
<name>nifi</name>
|
||||||
<summary>Apache NiFi</summary>
|
<summary>Apache NiFi</summary>
|
||||||
<description>Apache NiFi is dataflow system
|
<description>Apache NiFi is dataflow system based on the Flow-Based Programming concepts.</description>
|
||||||
based on the Flow-Based Programming
|
<license>Apache License, Version 2.0 and others (see included LICENSE file)</license>
|
||||||
concepts.</description>
|
|
||||||
<license>Apache License, Version 2.0 and
|
|
||||||
others (see included LICENSE file)</license>
|
|
||||||
<url>http://nifi.apache.org</url>
|
<url>http://nifi.apache.org</url>
|
||||||
<group>Utilities</group>
|
<group>Utilities</group>
|
||||||
<prefix>/opt/nifi</prefix>
|
<prefix>/opt/nifi</prefix>
|
||||||
<defineStatements>
|
<defineStatements>
|
||||||
<defineStatement>_use_internal_dependency_generator
|
<defineStatement>_use_internal_dependency_generator 0</defineStatement>
|
||||||
0</defineStatement>
|
|
||||||
</defineStatements>
|
</defineStatements>
|
||||||
<defaultDirmode>750</defaultDirmode>
|
<defaultDirmode>750</defaultDirmode>
|
||||||
<defaultFilemode>640</defaultFilemode>
|
<defaultFilemode>640</defaultFilemode>
|
||||||
|
@ -548,15 +544,7 @@
|
||||||
<script>sed -i s/^run\.as=$/run\.as=${nifi.run.as}/ $RPM_BUILD_ROOT/opt/nifi/nifi-${project.version}/conf/bootstrap.conf</script>
|
<script>sed -i s/^run\.as=$/run\.as=${nifi.run.as}/ $RPM_BUILD_ROOT/opt/nifi/nifi-${project.version}/conf/bootstrap.conf</script>
|
||||||
</installScriptlet>
|
</installScriptlet>
|
||||||
<preinstallScriptlet>
|
<preinstallScriptlet>
|
||||||
<script>
|
<script>/usr/bin/getent group nifi >/dev/null || /usr/sbin/groupadd -r nifi; /usr/bin/getent passwd nifi >/dev/null || /usr/sbin/useradd -r -g nifi -d /opt/nifi -s /sbin/nologin -c "NiFi System User" nifi</script>
|
||||||
/usr/bin/getent group nifi
|
|
||||||
>/dev/null || /usr/sbin/groupadd
|
|
||||||
-r nifi; /usr/bin/getent passwd nifi
|
|
||||||
>/dev/null || /usr/sbin/useradd
|
|
||||||
-r -g nifi -d /opt/nifi -s
|
|
||||||
/sbin/nologin -c "NiFi System User"
|
|
||||||
nifi
|
|
||||||
</script>
|
|
||||||
</preinstallScriptlet>
|
</preinstallScriptlet>
|
||||||
</configuration>
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
|
|
Loading…
Reference in New Issue