From e206da1fdeb7945986319d4f8338c9b8b3dbec4b Mon Sep 17 00:00:00 2001 From: Dragan Dosen Date: Tue, 2 Sep 2008 21:19:33 +0200 Subject: [PATCH] debian/postinst: + unmark seen for php4-cn/inivalues. + small fix for debconf-escape (db_capb escape). debian/templates: + small change for php4-cn/inivalues template. --- debian/postinst | 2 ++ debian/templates | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/postinst b/debian/postinst index 936c7aa..bd93964 100755 --- a/debian/postinst +++ b/debian/postinst @@ -240,9 +240,11 @@ for SAPI in apache2 cli; do if [ -f "$ini_file" ]; then php4_inivalues="$(phpinivalidate "$ini_file")" if [ -n "$php4_inivalues" ]; then + db_fset php4-cn/inivalues seen false db_title php4-cn - konfiguracija za $(echo ${SAPI} | sed 's/a/A/;s/cli/CLI/') db_subst php4-cn/inivalues php4_sapi $(echo ${SAPI} | sed 's/a/A/;s/cli/CLI/') db_subst php4-cn/inivalues ini_file "$ini_file" + db_capb escape db_subst php4-cn/inivalues php4_inivalues "$(echo -n "$php4_inivalues" | debconf-escape -e)" db_input critical php4-cn/inivalues || true db_go || true diff --git a/debian/templates b/debian/templates index 471f93d..856ab6b 100644 --- a/debian/templates +++ b/debian/templates @@ -37,7 +37,7 @@ Description: Provjerom trenutne PHP4 konfiguracije za ${php4_sapi} (konfiguracijska datoteka ${ini_file}), ustanovljeno je da sljedece postavke nisu ispravne: . - ${php4_inivalues} + ${php4_inivalues} . Vrijednosti za navedene postavke ne smiju zavrsavati sa 'B'. Dozvoljene oznake su 'K' (kilo), 'M' (mega) i 'G' (giga), npr. 16K, 32M, 1G. U protivnom, -- 1.7.10.4