pkgr
pkgr copied to clipboard
Permission of files changed
I'm not entirely sure if this is an issue with Pkgr or the buildpack. The issue I'm having is that I build an RPM with Pkgr from a Rails application. When I install the RPM I can see that the installed files don't have the same permissions as the original files.
I've done some debugging, like running fpm
with the --debug-workspace
flag, which keeps the workspace after the packaging is complete. I can see that the files have the wrong permission in the workspace. I've also tried to run fpm
manually to package a simple directory with a file. That will not change the permission of the file. So it looks like it's not fpm
that changes the permissions.
Is it Pkgr that changes the permissions? If that's the case, is that intentional?
Most files end up with the -rwxr-xr-t
permission instead of -rw-r--r--
. It adds executable permission and sets the sticky bit.
Do you have an example of a file that gets incorrect permissions? For instance, does it apply to your Procfile
file? Which distribution are you using?
It applies to all files. For example, the readme file I have in the root directory of the project. I'm using CentOS 6. This is from the debug output, the Pkgr::Config
instance:
dependencies=[
"postgresql94-libs = 9.4.8-1PGDG.rhel6",
"libxml2 = 2.7.6-21.el6_8.1",
"openssl >= 1.0.1e-42.el6_7.2
readline >= 6.0-4.el6 libxslt >= 1.1.26-2.el6_3.1
postgresql94-libs = 9.4.8-1PGDG.rhel6
libxml2 = 2.7.6-21.el6_8.1"
],
crons=["lvnetc/cron/foo"],
verbose=false,
debug=true,
buildpacks_cache_dir="/root/.pkgr/buildpacks",
architecture="x86_64",
category="none",
iteration="20161027083811",
build_dependencies=[],
disable_default_dependencies=true,
auto=false,
clean=true,
edge=true,
env=[],
verify=true,
data_dir="/usr/local/rvm/gems/ruby-2.2.1/gems/pkgr-1.5.1/data",
disable_cli=true,
maintainer="Foo",
vendor="Foo",
license="Foo",
user="foo",
runner="sysv-lsb-3.1",
force_os="centos-6",
version="1.4.6",
description="foo",
before_precompile="/tmp/before_compile.sh20161027-5111-ui1zf1",
after_precompile="/tmp/after_compile.sh20161027-5111-am73ho",
before_install="/tmp/before_install.sh20161027-5111-qqdsfe",
after_install="/tmp/after_install.rb20161027-5111-ei327n",
name="foo"