izmjene u postinst lenny
authorIvan Rako <irako@nekkar.carnet.hr>
Mon, 18 May 2009 13:21:26 +0000 (15:21 +0200)
committerIvan Rako <irako@nekkar.carnet.hr>
Mon, 18 May 2009 13:21:26 +0000 (15:21 +0200)
debian/postinst

index 8333a20..f47332c 100755 (executable)
@@ -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