1
0
Fork 0

Run as postgres, output

main
Jeff Moe 2023-01-09 10:53:14 -07:00
parent 3183224437
commit 93c8de556c
1 changed files with 12 additions and 4 deletions

View File

@ -132,12 +132,11 @@ sudo cp dist/rapidblock_dot_org.pub /opt/rapidblock/share/rapidblock-dot-org.pub
sudo cp rapidblock /opt/rapidblock/bin/rapidblock
```
I tried this to get an initial blocklist imported.
The import appeared to work, and I can see it in the
logs, but I don't see the actual list of blocked domains
in the admin interface.
This has to be run as the `postgres` user.
```
sudo su - postgres
curl -o /tmp/blocklist.json https://rapidblock.org/blocklist.json
rapidblock \
@ -150,6 +149,11 @@ rapidblock \
Note the database name `mastodon_production` was default for Mastodon
install, but you may have another name.
Running it may give output similar to this:
```
added 166 new block(s)
```
Perhaps also:
@ -161,6 +165,10 @@ sudo ln -s /opt/rapidblock/bin/rapidblock /usr/local/bin
#sudo cp XXX opt/rapidblock/share/rapidblock.intoto.jsonl
```
I tried this to get an initial blocklist imported.
The import appeared to work, and I can see it in the
logs, but I don't see the actual list of blocked domains
in the admin interface.
Issues with Rapidblock: