Enable nocem.

This commit is contained in:
2026-07-29 10:52:04 +05:00
parent c82abea21a
commit e97be45bcc
3 changed files with 28 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
#!/bin/sh
if [ -f "/inn2/etc/pgp/ncmring.gpg" ]; then
exit 0
fi
if [ ! -d "/inn2/etc/pgp" ]; then
mkdir -p "/inn2/etc/pgp"
fi
echo "* Downloading NoCeM gpg keys and ctl file..."
curl -o /inn2/etc/pgp/ncmring.gpg https://rosalind.home.xs4all.nl/nocemreg/ncmring.asc
curl -o /inn2/etc/nocem.ctl https://rosalind.home.xs4all.nl/nocemreg/ncmperm.txt
chown -R news:news /inn2/etc/nocem.ctl /inn2/etc/pgp
echo "* Enabling NoCeM processing..."
sed -i '/^#nocem/ { s/^#//; n; s/^#//; }' /inn2/etc/newsfeeds