File: regenerate-indices

package info (click to toggle)
sn 0.3.8-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, trixie
  • size: 976 kB
  • sloc: ansic: 9,255; sh: 467; makefile: 210
file content (14 lines) | stat: -rw-r--r-- 305 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /bin/sh

set -e

echo -n "Regenerating the indices in /var/spool/sn ... "
cd /var/spool/sn
touch .noservice
pkill -HUP snntpd.bin
rm -f .newsgroup .table .chain
find . -type f -name "+*" -exec rm -f {} \;
/usr/sbin/snprimedb -i
/usr/sbin/snscan -n * | /usr/sbin/snprimedb
rm -f .noservice
echo "done."