From: Dragan Dosen Date: Tue, 2 Sep 2008 19:19:33 +0000 (+0200) Subject: debian/postinst: X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=php4-cn.git 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. --- 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,