From 2f6836cda67052c99eb832fe079db77acd4d78ef Mon Sep 17 00:00:00 2001 From: stransky Date: Sat, 23 Nov 2002 19:07:45 +0100 Subject: [PATCH] Modifications dans les commandes pour reconstruire l'historique, lancement de news.daily aprs la reconstruction. (stransky) darcs-hash:20021123180745-a279a-ef1f376aea0a3c4e68b61e64ee2ea33b83bdef05.gz --- fix-overview | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/fix-overview b/fix-overview index 52416e43..a71f7cd7 100755 --- a/fix-overview +++ b/fix-overview @@ -5,11 +5,11 @@ if [ $UID != 0 ]; then exit 1 fi -# /etc/init.d/inn2 stop +/etc/init.d/inn2 stop (awk -F: -f - /etc/news/buffindexed.conf <> history.n -1£makedbz -s $(wc -l < history) -f history.n -0£mv -f history.n history +0£rm -f history* +0£touch history +1£makedbz -i 0£mv -f history.n.dir history.dir 0£mv -f history.n.hash history.hash 0£mv -f history.n.index history.index +0£chmod 664 history* +1£makehistory -a -O -b -e EOF ) | sh echo "OK, redemarrage de INN" +/etc/init.d/inn2 start + +(awk -F£ '{ printf "su news -c \"" ; if ($1 == 1) printf "/usr/lib/news/bin/" ; printf $2"\" ; if [ $? != 0 ]; then echo \"Erreur pour la commande "NR"\" ; exit 2 ; fi\n"}' <