[DRE-commits] [diaspora-installer] 12/23: create vendor/bundle in ~

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Wed Jan 25 21:57:48 UTC 2017


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

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

commit be0fc1cec54930daf0488800dbe3ff34a8508381
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Wed Jan 25 00:13:37 2017 +0530

    create vendor/bundle in ~
---
 debian/diaspora-installer.links | 1 +
 debian/postinst                 | 5 +++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/debian/diaspora-installer.links b/debian/diaspora-installer.links
index 1061e8d..8af7ec6 100644
--- a/debian/diaspora-installer.links
+++ b/debian/diaspora-installer.links
@@ -1,2 +1,3 @@
 etc/diaspora/database.yml usr/share/diaspora/config/database.yml
 etc/diaspora/diaspora.yml usr/share/diaspora/config/diaspora.yml
+var/lib/diaspora/vendor/bundle usr/share/diaspora/vendor/bundle
diff --git a/debian/postinst b/debian/postinst
index 48299c9..d44ed31 100755
--- a/debian/postinst
+++ b/debian/postinst
@@ -46,9 +46,10 @@ https://github.com/hyperic/sigar/issues/60 ..."
         su diaspora -s /bin/sh -c "bundle config --local build.sigar '--with-cppflags=\"-fgnu89-inline\"'"
 
 	echo "Installing gems with rubygems ..."
-	su diaspora -s /bin/sh -c "bundle install --path vendor/bundle --with ${BUNDLE_WITH} --without development test"
+	su ${diaspora_user} -s /bin/sh -c "mkdir -p ~/vendor/bundle"
+	su ${diaspora_user} -s /bin/sh -c "bundle install --path vendor/bundle --with ${BUNDLE_WITH} --without development test"
         # Fix permissions (see #847286)
-	su diaspora -s /bin/sh -c "find vendor/bundle -type f -exec chmod ga-w {} \;"
+	su ${diaspora_user} -s /bin/sh -c "find vendor/bundle -type f -exec chmod ga-w {} \;"
 
 	# 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