Enable nocem.
This commit is contained in:
Executable
+18
@@ -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
|
||||
Reference in New Issue
Block a user