From 5f7498111911836c98a6a3b29229e4667390ffb0 Mon Sep 17 00:00:00 2001 From: stransky Date: Sat, 23 Nov 2002 19:05:54 +0100 Subject: [PATCH] Import initial du script de Manuel Sabban pour rparer l'overview (stransky) darcs-hash:20021123180554-a279a-61c2c48c702abc24b2ef1dd6edd0c6c32c198ff0.gz --- fix-overview | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100755 fix-overview diff --git a/fix-overview b/fix-overview new file mode 100755 index 00000000..52416e43 --- /dev/null +++ b/fix-overview @@ -0,0 +1,37 @@ +#!/bin/bash + +if [ $UID != 0 ]; then + echo "Il faut être root pour lancer ce script" + exit 1 +fi + +# /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£mv -f history.n.dir history.dir +0£mv -f history.n.hash history.hash +0£mv -f history.n.index history.index +EOF +) | sh + +echo "OK, redemarrage de INN" + +# /etc/init.d/inn2 start