Commit Graph

86 Commits (cdd4d9ea9e51c8110df832d5fadeb44bc90b5085)

Author SHA1 Message Date
DL6ER d03aa0c0c7
Merge pull request #4379 from pi-hole/tweak/vw_adlist
3 years ago
yubiuser 3c41ec08a3
Set file permission for querie database in pihole-FTL.service (#4328)
3 years ago
Christian König b30d729aa4 Simplify vw_adlist
3 years ago
Adam Warner 62f29ba3fa
Merge branch 'release/v5.4' into development
3 years ago
DL6ER a1ee7d92a9
Add possibly missing capabilities
3 years ago
Adam Warner c88c943cda
Merge branch 'release/v5.4' into dev-release5.4
3 years ago
DL6ER 43b88cd628
Merge pull request #4236 from MichaIng/patch-4
3 years ago
Adam Warner 913dcead7f
move chmod/chown of macvendor.db to pihole-FTL.service
3 years ago
MichaIng 57c40cbd09 Update pihole-FTL.service
3 years ago
Faye Duxovni aa5c15a728 give pihole its own logrotate state file
3 years ago
DL6ER 6b33b8b4c0
Store status of downloaded list (downloaded, using cache, some error, ...) and number of (in-)valid domains on this list in the gravity database. This updates the gravity databaes to version 14.
3 years ago
Michael Woolweaver 3a05ac27a2
Fix typo found by #3933
3 years ago
DL6ER 12b9748c43
Fine-tune adlist:adte_modified trigger and don't default new date_updated column to now but use NULL instead
4 years ago
DL6ER 4fd412d7c3
Add date_updated field in adlist table set when a list changes.
4 years ago
DL6ER 8f7f0881c6
Add /usr/sbin to cronjob PATH
4 years ago
DL6ER 17aabf26f7
Also use pkill/pgrep in the FTL service script
4 years ago
DL6ER 202ba055ea
Change UNIQUEness constraint from (domain) to (domain, type) in the domainlist table. This will allow duplicates which can be associated to different groups.
4 years ago
DL6ER de8976da7a
Add CAP_SYS_NICE to FTL's capabilities so it can control its own niceness.
4 years ago
MichaIng 5c17e41cf1 Start pihole-FTL after network
4 years ago
Dan Schaper 10addc5923
Merge pull request #3218 from JulienOrain/patch-1
4 years ago
DL6ER 7cc35d3b04
Add update to gravity database version 12, renaming the Unassociated group to Default group.
4 years ago
Julien Orain 6d4844a0b3 docs(typo): fix typo
4 years ago
DL6ER e528903488
Merge pull request #3107 from pi-hole/new/client_comments
4 years ago
DL6ER 92aa510bda
Add timestamps and comment fields to clients. This updates the gravity database to version 11.
4 years ago
DL6ER 6b04997fc3
DROP and reCREATE TRIGGERs during gravity swapping.
4 years ago
DL6ER 10c2dad48a Improve gravity performance (#3100)
4 years ago
Adam Warner ec09b5843c
Merge branch 'development' into fix/do_not_force_local_resolver
5 years ago
DL6ER 620e1e9c73
Do not force nameserver 127.0.0.1 through resolvconf in pihole-FTL.service
5 years ago
DL6ER 8a119d72e2
Ensure database permissions are set up correctly by the service script.
5 years ago
chrunchyjesus 476975540a
make some shebangs comply to posix standard
5 years ago
DL6ER 3cb4f6d9d4
We cannot create vw_gravity before having created vw_whitelist as the former depends onthe later. This commit changes the order in which the tables are created.
5 years ago
DL6ER acc50b709e
Only migrate files once (domain and adlist lists druing initial creation of gravity.db auditlog.list on database upgrade from version 1 to 2.
5 years ago
DL6ER 0405aaa3da
Review comments and fixing stickler complaints.
5 years ago
DL6ER 2fb4256f84
Rename table to "auditlist"
5 years ago
DL6ER 1dbe6c83c3
Add database upgrading mechanism for adding the audit table.
5 years ago
DL6ER 23b3a9a650
Add DISTINCT to the view\'s SELECT queries to avoid domain duplication in case they are enabled in multiple groups at the same time.
5 years ago
DL6ER f91421418a
Rename adlists -> adlist table.
5 years ago
DL6ER 3a14e8b013
Check whitelist_by_group.group_id instead of group.enabled against NULL.
5 years ago
DL6ER ad97e95f2f
Add required name column in group table.
5 years ago
DL6ER 5b01facd73
Fix logix on the views: AND ( OR )
5 years ago
DL6ER 6fe637b9ee
Rename groups -> group
5 years ago
DL6ER 94d83dbb2d
Unify the two group tables into a single "groups" table. This allows managing adlists and domains together.
5 years ago
DL6ER 87c115fc86
Change implementation to use linking tables (domain_groups, adlists_groups). This allows adding domains to multiple lists conveniently.
5 years ago
DL6ER 0774c4e5ca
vw_gravity should actually filter using vw_whitelist.
5 years ago
DL6ER 01850c2128
Automatically recreate standard group after deletion to avoid violating foreign key constraints even if foreign key enforcing is disabled (SQLite's default behavior)
5 years ago
DL6ER cbc210b014
Add adlist_groups and mark group_id columns as NOT NULL.
5 years ago
DL6ER c53ee4202b
Add filtering by domain groups to gravity database.
5 years ago
DL6ER ae98fde321
Try to obtain PID from PIDFILE. If this fails (file does not exist or is empty), fall back to using pidof + awk
5 years ago
DL6ER f6213d4f4d
Use last PID in case pidof returns multiple PIDs for pihole-FTL
5 years ago
DL6ER d46ff1d2d7
Remove UNIQUE on gravity table as the only column is already PRIMARY KEY. Primary keys must contain UNIQUE values, and cannot contain NULL values
5 years ago