DL6ER
|
cdeb5e3427
|
Add which capability is missing in warnings (if applicable). Also reduce chown() code duplication by using a single function for all chown()-activities
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2024-07-02 03:48:12 +02:00 |
|
DL6ER
|
a7dbcc678c
|
Merge branch 'development-v6' into new/config_checksum
|
2023-11-23 22:11:07 +01:00 |
|
DL6ER
|
f4798929e1
|
Only reload pihole.toml if the content changed
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2023-11-22 23:01:19 +01:00 |
|
DL6ER
|
98f7ff8e62
|
Do not compress rotated files - they are not expected to be large
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2023-11-19 22:58:29 +01:00 |
|
DL6ER
|
1a517c7358
|
Merge branch 'development-v6' into fix/read_rotated_toml_on_error
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2023-11-18 16:13:27 +01:00 |
|
DL6ER
|
10c635b018
|
Do not rewrite config file pihole.toml when the content did not change
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2023-11-09 19:05:03 +01:00 |
|
DL6ER
|
51fb66b80f
|
If reading pihole.toml failed, we recreated one from the possibly still existing setupVars.conf, etc. files. However, it arguably makes more sense to instead restore from the last known-to-be-good rotated config file in /etc/pihole/config_backups
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2023-11-06 15:27:42 +01:00 |
|
DL6ER
|
2788fa0137
|
Add files.pcap to expose integrated packet (PCAP) dumping to a file
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2023-09-02 18:25:34 +02:00 |
|
DL6ER
|
95653e7581
|
Only load TLS certificate when the specified file exists and is readable
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2023-04-05 21:23:59 +02:00 |
|
DL6ER
|
5fdf7dd340
|
Include "source" of hwmon items and individual sensor's "max" and "crit" values (if available) in /api/info/sensors
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2023-02-07 21:00:15 +01:00 |
|
DL6ER
|
4ee054b962
|
Only warn once about disk shortage in case database and log file are on the same device (e.g. both on / )
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2023-02-06 21:16:23 +01:00 |
|
DL6ER
|
d7da3f7996
|
Improve disk shortage warning to point out more precisely which filesystem is getting full. We do this by mentioning the mountpoint instead of the filename
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2023-02-06 21:12:47 +01:00 |
|
DL6ER
|
ac4c9e789d
|
Add DELETE /api/dhcp/leases/{ip}
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2023-02-05 13:55:45 +01:00 |
|
DL6ER
|
aeb61a3026
|
Add HTTP OPTIONS method processing. Using something like "curl -X OPTIONS -I pi.hole:8080/api/... will return an Allow header specifying which endpoint supports which method.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2023-01-21 12:53:04 +01:00 |
|
DL6ER
|
02b7f50c55
|
Keep (up to) 15 config files in rotated form. To save space, we leave the most recent 4 uncompressed and compress the remaining files
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2023-01-20 18:51:11 +01:00 |
|
DL6ER
|
0f69342811
|
Rotate config files away instead of forcefully overwriting them. This allows users to easily revert in case they made unwanted changes.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2023-01-20 04:47:27 +01:00 |
|
DL6ER
|
bd266d6589
|
Further improvements for check_space()
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2023-01-20 04:39:31 +01:00 |
|
DL6ER
|
70fff27c46
|
Check if temperature sensors exist before reading them to avoid spamming the log with "no such file or directory" messages for sensors without labels
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2023-01-15 20:43:38 +01:00 |
|
DL6ER
|
96c6effa45
|
Only add "conf-dir=/etc/dnsmasq.d" to the config if this directory exists
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2023-01-15 12:33:32 +01:00 |
|
DL6ER
|
8bbd49acf4
|
Modify /version to match the new /etc/pihole/versions file format
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2023-01-09 20:31:14 +01:00 |
|
DL6ER
|
1b43a44d42
|
Merge branch 'development' into new/http
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2021-12-14 10:21:54 +01:00 |
|
DL6ER
|
4c2c59b214
|
Warn about resource shortages (15min load average exceeding number of cores, available disk space for database and log file, and available shared memory (RAM))
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2021-11-29 14:11:15 +01:00 |
|
DL6ER
|
c0570c51c2
|
Merge branch 'development' into new/http
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2021-11-02 09:53:13 +01:00 |
|
DL6ER
|
7b2770e7f6
|
Merge branch 'release/v5.9' into new/http
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2021-07-13 17:04:16 +02:00 |
|
DL6ER
|
e1bad8504c
|
Improve flags debugging
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2021-06-16 23:17:47 +02:00 |
|
DL6ER
|
a292c8f67f
|
Improve database statistics endpoint
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-06-17 20:07:31 +02:00 |
|
DL6ER
|
a78c0cc5ae
|
Merge branch 'development' into new/ls_dev_shm_on_crash
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-07-14 22:43:37 +02:00 |
|
DL6ER
|
8172493679
|
Use unsigned long lng on all platforms for file size. Print human-readable filesize in ls_dir().
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-07-14 22:36:26 +02:00 |
|
DL6ER
|
4bbaeef783
|
Explicitly cast filesize to 64bit unsigned int on all targets.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-07-14 22:20:47 +02:00 |
|
DL6ER
|
51b43c58dd
|
Include listing of files in /dev/shm when pihole-FTL crashes. This should help identifying file system / permission errors with shared memory.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-07-14 22:16:36 +02:00 |
|
DL6ER
|
09b8f91617
|
Check audit database table instead of file in the API.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-07-05 16:30:07 +02:00 |
|
DL6ER
|
25161c1c7d
|
Move blocking status detection from files.c to setupVars.c
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-07-05 12:13:38 +02:00 |
|
DL6ER
|
8280f454a8
|
Change type of get_FTL_db_filesize() from double to long int.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-07-05 12:05:32 +02:00 |
|
DL6ER
|
e365364f72
|
Move all source files into new subdirectory "src". Put compiled objects into new subdirectory "build".
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-07-02 00:18:56 +02:00 |
|