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