Archived
1
0
This repository has been archived on 2023-08-12. You can view files and clone it, but cannot push or open issues or pull requests.
nntpchan/contrib/tools/keys/keys.sh

11 lines
301 B
Bash
Raw Normal View History

2015-10-27 19:02:34 +05:00
#!/bin/bash
#
# script to make sql file for inserting all "currently trusted" keys
#
root=$(readlink -e "$(dirname "$0")")
touch "$root/keys.sql"
for key in $(cat "$root/keys.txt") ; do
2015-10-27 19:02:34 +05:00
echo "insert into modprivs(pubkey, newsgroup, permission) values('$key', 'overchan', 'all');" >> keys.sql ;
done