[Fiware-tech-help] [Chp - IoT][IDAS] Fix errors on neoidas-monitbd rpm package

David Muriel dmuriel at bitergia.com
Thu Oct 23 22:48:17 CEST 2014


The neoidas-monitbd rpm package currently available has some errors
that need to be fixed:

* Set the user and group of files during package creation:

  The files on the package have the group set to "cvs", which may not
exist when installing the package, raising the following error:

    warning: group cvs does not exist - using root

  This can be fixed when building the rpm package by using the %attr
and %defattr directives on the %files section of the package spec
file.  Instead the group is modified afterwards on the package
postinstall script.

  If this user must exist, state on the installation guide the
necessary commands to create it.

* Set the execution bit of scripts during package creation:

  Some of the scripts installed by the package do not have the
execution bit enabled when installed, so they can not be executed.
One of them is used on the package postinstall script, thus failing
with the following error:

    -ksh: line 1: /home/mongodb/scripts/stamongod.sh: cannot execute
[Permission denied]

  This can be fixed when building the rpm package by using the %attr
directive on the %files section of the package spec file.



More information about the Fiware-tech-help mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy