[Pkg-sympa-commits] [sympa] 13/14: Fix shell function used to prefill debconf questions from Sympa configuration file in debian/config. Values reinjected to Sympa config file were false and led to serious configurations issues (#863631)

Emmanuel Bouthenot kolter at moszumanska.debian.org
Thu Jul 27 10:43:20 UTC 2017


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

kolter pushed a commit to branch master
in repository sympa.

commit 597e200c06e46d3659ff0e1600c46e872f0ded19
Author: Emmanuel Bouthenot <kolter at openics.org>
Date:   Thu Jul 27 12:22:18 2017 +0200

    Fix shell function used to prefill debconf questions from Sympa
    configuration file in debian/config. Values reinjected to Sympa config
    file were false and led to serious configurations issues (#863631)
---
 debian/config | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/config b/debian/config
index 6e8101c..e1e6be8 100644
--- a/debian/config
+++ b/debian/config
@@ -10,7 +10,7 @@ db_version 2.0
 sympa_conf_get() {
     key="${1}"
     if [ -e "${conf}" ]; then
-        sed -r -n 's/^\s*db_user\s+(.*)$/\1/p' "${conf}"
+        sed -r -n "s/^\s*${key}\s+(.*)\$/\1/p" "${conf}"
     fi
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/sympa.git



More information about the Pkg-sympa-commits mailing list