From: Ivan Rako Date: Mon, 18 May 2009 13:21:26 +0000 (+0200) Subject: izmjene u postinst X-Git-Tag: debian/2.1.13-1~5 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=refs%2Fheads%2Flenny;p=mailman-cn.git izmjene u postinst --- diff --git a/debian/postinst b/debian/postinst index 8333a20..f47332c 100755 --- a/debian/postinst +++ b/debian/postinst @@ -143,8 +143,6 @@ if ! echo $site_languages | grep -q 'hr'; then db_go || true fi db_set mailman/default_server_language "hr" || true -db_go || true -db_stop || true site_languages="`echo $site_languages | tr -d ','`" mm_etc=/etc/mailman @@ -155,16 +153,18 @@ for lang in ${site_languages}; do echo -n "Installing site language ${lang} " >&2 mkdir -p ${mm_etc}/${lang} for file in $(ls ${mm_dist}/${lang}); do - echo -n . >&2 + printf . >&2 langfile=${lang}/${file} ucf --debconf-ok --three-way ${mm_dist}/${langfile} ${mm_etc}/${langfile} 2>/dev/null # Upon install ucf leaves a duplicate in .dpkg-dist (Bug #238730), remove it cmp -s ${mm_etc}/${langfile} ${mm_etc}/${langfile}.dpkg-dist \ && rm ${mm_etc}/${langfile}.dpkg-dist done - echo " done." >&2 + printf " done." >&2 done +db_go || true +db_stop || true # restart mailman if [ "$restart" = "yes" -a -x /etc/init.d/mailman ]; then