[DRE-commits] [diaspora-installer] 03/04: set DB_NAME variable

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Sun Aug 28 19:29:08 UTC 2016


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

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

commit 21b7ca7e4208afb4a2f70f4d471e5079ccaab33f
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Mon Aug 29 00:50:28 2016 +0530

    set DB_NAME variable
---
 set-env-diaspora.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/set-env-diaspora.sh b/set-env-diaspora.sh
index d842f97..c04c441 100755
--- a/set-env-diaspora.sh
+++ b/set-env-diaspora.sh
@@ -12,6 +12,11 @@ if test -f ${diaspora_conf}; then
     else
       echo export BUNDLE_WITH=mysql >> ${diaspora_conf}
     fi
+    if ! grep DB_NAME ${diaspora_conf} ; then
+      echo "Older versions did not set DB_NAME variable"
+      echo "Setting DB_NAME variable in ${diaspora_conf}..."
+      echo export DB_NAME=diaspora_production >> ${diaspora_conf}
+    fi
   fi
   # source diaspora variables	
   . ${diaspora_conf}

-- 
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