[DRE-commits] [diaspora] 176/257: check if diaspora.conf exist or grep will fail

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Sun Apr 12 14:17:22 UTC 2015


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

praveen pushed a commit to branch master
in repository diaspora.

commit de3035feee1c1d8cbf31af2132dcfe0f36d01bc0
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Fri Nov 28 17:21:50 2014 +0530

    check if diaspora.conf exist or grep will fail
---
 debian/config | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/config b/debian/config
index a36b656..b09c626 100644
--- a/debian/config
+++ b/debian/config
@@ -22,7 +22,7 @@ db_go
 
 # Configure pod address.
 db_get diaspora/url
-if ! grep SERVERNAME /etc/diaspora.conf >/dev/null
+if ! [[ -f /etc/diaspora.conf ]]
 	then 
 		echo export SERVERNAME=$RET >> /etc/diaspora.conf
 		sed -e "s/SERVERNAME_FIXME/$RET/" -e "s/DIASPORA_SSL_PATH_FIXME/\\/etc\\/diaspora/" -e "s/DIASPORA_ROOT_FIXME/\\/usr\\/share\\/diaspora/" /usr/share/doc/diaspora/nginx.conf.example >/etc/nginx/sites-available/$RET

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