19 lines
512 B
Bash
Executable File
19 lines
512 B
Bash
Executable File
#!/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
|