[DRE-commits] [diaspora-installer] 01/02: read values from config file to debconf db

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Wed Apr 26 06:52:07 UTC 2017


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

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

commit 3358f0f5cd7b008f6aaaa5679b789f46292e99c9
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Wed Apr 26 09:56:17 2017 +0530

    read values from config file to debconf db
---
 debian/diaspora-common.config | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/debian/diaspora-common.config b/debian/diaspora-common.config
index 2c0754c..ba4794e 100644
--- a/debian/diaspora-common.config
+++ b/debian/diaspora-common.config
@@ -1,11 +1,25 @@
 #!/bin/sh
-# config maintainer script for diaspora-installer
+# config maintainer script for diaspora-common
+
+CONFIGFILE=/etc/diaspora.conf
  
 set -e
 
+
 # source debconf stuff
 . /usr/share/debconf/confmodule
 
+# Load config file, if it exists.
+  if [ -e $CONFIGFILE ]; then
+      . $CONFIGFILE || true
+
+      # Store values from config file into
+      # debconf db.
+      db_set diaspora-common/url "$SERVERNAME"
+      db_set diaspora-common/ssl "$diaspora_https:-true"
+      db_set diaspora-common/letsencrypt "${diaspora_letsencrypt:-false}"
+  fi
+
 # What is your pod address?
 db_input high diaspora-common/url || 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