From e07cb2d2d0000f0436c282e2d72f9bdd267a869d Mon Sep 17 00:00:00 2001 From: Doug Rohrer Date: Fri, 30 Sep 2016 14:09:23 -0400 Subject: [PATCH] Fix permissions before building package on Solaris to defend against umask/bad file permissions issues. --- priv/templates/solaris/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/priv/templates/solaris/Makefile b/priv/templates/solaris/Makefile index 70ca865..e7e7ca4 100644 --- a/priv/templates/solaris/Makefile +++ b/priv/templates/solaris/Makefile @@ -27,6 +27,13 @@ buildrel: @# Ye Olde Bourne Shell on Solaris means we have to do it old school echo "Using `which erl` to build"; \ OVERLAY_VARS="overlay_vars=../solaris/vars.config" $(MAKE) rel + chmod -R go+rX rel/{{package_install_name}} + chmod 0755 rel/{{package_install_name}}/etc + chmod -R a+rX rel/{{package_install_name}}/etc + chmod 0755 rel/{{package_install_name}}/lib/env.sh + chmod 0755 rel/{{package_install_name}}/lib/app_epath.sh + chmod 0755 rel/{{package_install_name}}/erts-*/bin/nodetool + chmod -R go+rX rel/{{package_install_name}}/lib/ chmod 0755 rel/{{package_install_name}}/bin/* \ rel/{{package_install_name}}/erts-*/bin/* if [ "{{bin_or_sbin}}" != "bin" ]; then \