From d106ad90b8b43df30172aec55c058d57a3eb4bd6 Mon Sep 17 00:00:00 2001 From: Ivan Rako Date: Mon, 18 May 2009 15:21:26 +0200 Subject: [PATCH] izmjene u postinst --- debian/postinst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 1.7.10.4