[DRE-commits] [diaspora-installer] 01/01: Use stored variable
Balasankar C
balasankarc-guest at moszumanska.debian.org
Mon Nov 30 09:23:41 UTC 2015
This is an automated email from the git hooks/post-receive script.
balasankarc-guest pushed a commit to branch debconf
in repository diaspora-installer.
commit 72c0b05f33b6e68c3ca114a04ff729f646f2e2df
Author: Balasankar C <balasankarc at autistici.org>
Date: Mon Nov 30 14:46:26 2015 +0530
Use stored variable
---
debian/diaspora-common.postinst | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/debian/diaspora-common.postinst b/debian/diaspora-common.postinst
index 54bd34a..973293a 100755
--- a/debian/diaspora-common.postinst
+++ b/debian/diaspora-common.postinst
@@ -85,6 +85,7 @@ case "$1" in
db_get diaspora-common/services
echo "Services List"
selectedservices=$RET
+ echo $selectedservices
if [ "$RET" != "" ]; then
#Check if Facebook is selected
servicename="Facebook"
@@ -117,7 +118,7 @@ case "$1" in
echo export SERVICES_FACEBOOK_SECRET=$facebook_secret >> /etc/diaspora.conf
fi
servicename="Twitter"
- if [ "${selectedservices#*$servicename}" != "$RET" ]; then
+ if [ "${selectedservices#*$servicename}" != "$selectedservices" ]; then
db_beginblock
db_input high diaspora-common/twitter_key || true
db_go
@@ -146,7 +147,7 @@ case "$1" in
echo export SERVICES_TWITTER_SECRET=$twitter_secret >> /etc/diaspora.conf
fi
servicename="Tumblr"
- if [ "${selectedservices#*$servicename}" != "$RET" ]; then
+ if [ "${selectedservices#*$servicename}" != "$selectedservices" ]; then
db_beginblock
db_input high diaspora-common/tumblr_key || true
db_go
@@ -175,7 +176,7 @@ case "$1" in
echo export SERVICES_TUMBLR_SECRET=$tumblr_secret >> /etc/diaspora.conf
fi
servicename="Wordpress"
- if [ "${selectedservices#*$servicename}" != "$RET" ]; then
+ if [ "${selectedservices#*$servicename}" != "$selectedservices" ]; then
db_beginblock
db_input high diaspora-common/wordpress_client_id || true
db_go
--
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