[DRE-commits] [diaspora] 01/04: Fix syntax error in postinst script

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Mon Dec 11 15:11:30 UTC 2017


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

praveen pushed a commit to branch master
in repository diaspora.

commit dc2ab882acea771945c945d93e57e824c1c262fc
Author: Joseph Nuthalapati <njoseph at thoughtworks.com>
Date:   Wed Dec 6 17:16:02 2017 +0530

    Fix syntax error in postinst script
    
    Line 38 in the postinst script is missing brackets.
    Also cleaned up whitespaces in the file.
    
    Signed-off-by: Joseph Nuthalapati <njoseph at thoughtworks.com>
---
 debian/postinst | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/debian/postinst b/debian/postinst
index 4ad1c85..737fa9f 100755
--- a/debian/postinst
+++ b/debian/postinst
@@ -31,11 +31,11 @@ set -e
 #######################################################################
 . /etc/diaspora/diaspora-common.conf
 cd ${diaspora_home}
-	
+
 #######################################################################
 # update Gemfile.lock, after first install
 #######################################################################
-if -e ${diaspora_conf}; then
+if [ -e ${diaspora_conf} ]; then
   . ${diaspora_conf}
   su ${diaspora_user} -s /bin/sh -c 'truncate -s 0 ${diaspora_home}/Gemfile.lock'
   if ! su ${diaspora_user} -s /bin/sh -c 'bundle --local --quiet'; then
@@ -62,16 +62,16 @@ case "$1" in
 	echo "Setting up environment varibales..."
 	. /usr/lib/diaspora-common/scripts/set-env-diaspora.sh
 	echo RAILS_ENV=$RAILS_ENV DB=$DB ENVIRONMENT_URL=$ENVIRONMENT_URL
-	
+
 	echo "Verifying we have all required libraries..."
 	su diaspora -s /bin/sh -c 'bundle install --local'
-	
+
 	echo "Setting up secret_token..."
-        DB=$DB RAILS_ENV=$RAILS_ENV DISABLE_SPRING=1 bundle exec rake generate:secret_token 
+        DB=$DB RAILS_ENV=$RAILS_ENV DISABLE_SPRING=1 bundle exec rake generate:secret_token
 
 	# Initialize database
         /usr/lib/diaspora-common/scripts/initdb.sh
- 
+
 	echo "Precompiling assets..."
 	chown -R ${diaspora_user}: /var/lib/diaspora/app-assets /var/lib/diaspora/public
 	su diaspora -s /bin/sh -c 'bundle exec rake tmp:cache:clear assets:precompile'

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



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