anudeepND / whitelist

A simple tool to add commonly white listed domains to your Pi-Hole setup.
MIT License
4.18k stars 281 forks source link

Uninstall script doesn't remove group #189

Open Couto opened 3 years ago

Couto commented 3 years ago

Running the uninstall script with sudo python3 uninstall.py. Everything was reported as successful, however the group anudeepND/whitelist was not removed from PiHole, nor is it possible to remove it manually. Although the Web UI reports success after an attempt to remove it, if we refresh the browser, the group is still there.

While I haven't investigated, I have the feeling that this is somewhat related to #187

My fix was to remove it directly from gravity.db with DELETE FROM "group" WHERE id = 2552552551;

anudeepND commented 3 years ago

@Couto Thanks for reporting the issue, I have reverted the PR for now. I will update the script as soon as possible.

Couto commented 3 years ago

Thank you a lot for the quick response, and a special thank you for maintaining this project! <3

anudeepND commented 3 years ago

If anyone wants to remove the group, you can run this command in the terminal:

sqlite3 /etc/pihole/gravity.db "DELETE FROM 'group' WHERE id = 2552552551;"