I have a pom file that creates an RPM artifact, and the RPM installs /tmp/some_script.sh
into /etc/init.d/some_script
.
It does indeed accomplish this, but it also tries to install /etc/init.d
before it installs /etc/init.d/some_script
. In other words, if I run:
rpm -qlp my_rpm.rpm
I get:
/etc/init.d
/etc/init.d/some_script
.....
How can I force it not to install /etc/init.d
?
Here's the relevant configuration:
<mapping>
<directory>/etc/init.d</directory>
<username>root</username>
<groupname>root</groupname>
<sources>
<source>
<location>/tmp/some_script.sh</location>
<destination>some_script</destination>
</source>
</sources>
</mapping>
According to rpm-maven-plugin:
<mapping>
<directory>/etc/init.d</directory>
<!-- Set this to false -->
<directoryIncluded>false</directoryIncluded>
<username>root</username>
<groupname>root</groupname>
<sources>
<source>
<location>/tmp/some_script.sh</location>
<destination>some_script</destination>
</source>
</sources>
</mapping>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With