basho / node_package

RPM/Debian/FreeBSD/SmartOS/Solaris/OSX packaging templates for Erlang Nodes
Apache License 2.0
89 stars 63 forks source link

Fix permissions before building package on Solaris #208

Closed JeetKunDoug closed 7 years ago

JeetKunDoug commented 7 years ago

The pkgproto tool on Solaris (like many other OSes) uses the filesystem permissions of the template installation on disk as the desired install permissions. Due to a strict (0077) umask set on some of our build infrastructure, many of the files/directories in the package did not have the appropriate permissions, even though testing before build on other Solaris machines (with less-restrictive umask settings) showed the correct permissions.

This PR sets the filesystem permissions correctly in the rel directory before running pkgproto so that it picks up the correct permissions.

This resolves #206 (TOOLS-345).