[DRE-commits] [diaspora-installer] 02/03: Properly set permissions for gems installed by bundler

Balasankar C balasankarc-guest at moszumanska.debian.org
Mon Dec 26 17:53:53 UTC 2016


This is an automated email from the git hooks/post-receive script.

balasankarc-guest pushed a commit to branch master
in repository diaspora-installer.

commit ed955c1fda364936048d6607ca0b8bfc7119ecb2
Author: Balasankar C <balasankar at gitlab.com>
Date:   Mon Dec 26 23:18:39 2016 +0530

    Properly set permissions for gems installed by bundler
---
 debian/postinst | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/debian/postinst b/debian/postinst
index 50d47f8..166e20e 100755
--- a/debian/postinst
+++ b/debian/postinst
@@ -48,6 +48,8 @@ https://github.com/hyperic/sigar/issues/60 ..."
 
 	echo "Installing gems with rubygems ..."
 	su diaspora -s /bin/sh -c "bundle install --path vendor/bundle --with ${BUNDLE_WITH} --without development test"
+	su diaspora -s /bin/sh -c "find vendor/bundle -type d -exec chmod 0755 {} \;"
+	su diaspora -s /bin/sh -c "find vendor/bundle -type f -exec chmod 0644 {} \;"
 
 	# Initialize database
         /usr/lib/diaspora-common/scripts/initdb.sh

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/diaspora-installer.git



More information about the Pkg-ruby-extras-commits mailing list