tag 866877 + patch thanks
Hello, Please find the attached patch to fix this bug. Thanks and regards, Joseph Nuthalapati
From 5c2a6fa28a8be3c7fca7c45eb6c5cabc311ac2e6 Mon Sep 17 00:00:00 2001 From: Joseph Nuthalapati <njos...@thoughtworks.com> Date: Wed, 6 Dec 2017 17:16:02 +0530 Subject: [PATCH] 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 <njos...@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' -- 2.15.0
signature.asc
Description: OpenPGP digital signature