From 0afc3c15999bbb2ef281abf83c95649645b7e97c Mon Sep 17 00:00:00 2001 From: Dragan Dosen Date: Wed, 2 Apr 2008 12:04:32 +0200 Subject: [PATCH] Added a dependency on debconf (debian/control). In debian/postinst, using 'printf' instead of 'echo -e'. --- debian/control | 2 +- debian/postinst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/control b/debian/control index de9a31f..fae7f90 100644 --- a/debian/control +++ b/debian/control @@ -8,7 +8,7 @@ Standards-Version: 3.6.1 Package: php5-cn Architecture: all -Depends: libapache2-mod-php5, php5-cli, php5-mysql, carnet-tools-cn (>= 2.4) +Depends: libapache2-mod-php5, php5-cli, php5-mysql, debconf, carnet-tools-cn (>= 2.4) Conflicts: php4-cn Description: server-side, HTML-embedded scripting language (CARNet configuration) This package is a meta-package that, when installed, guarantees that you diff --git a/debian/postinst b/debian/postinst index f17140b..25b9804 100755 --- a/debian/postinst +++ b/debian/postinst @@ -139,7 +139,7 @@ for php5ext in $EXTENSIONS; do cp_echo "CN: Adding $php5ext extension to file $PHP5CONFD/$php5ext.ini" - echo -e "# configuration for php $php5ext_up module\nextension=$php5ext.so" >> "$INITMP" + printf "# configuration for php %s module\nextension=%s\n" "${php5ext_up}" "${php5ext}" >> "$INITMP" cp_mv "$INITMP" "$PHP5CONFD/$php5ext.ini" need_restart=1 -- 1.7.10.4