Remove read permission for others on senible log files

Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
Christian König 2022-06-19 23:09:05 +02:00
parent b20aa865b9
commit 954a0c2a14
No known key found for this signature in database
GPG key ID: 4CDA6F249DD2B485
3 changed files with 6 additions and 5 deletions

View file

@ -1394,7 +1394,7 @@ curl_to_tricorder() {
upload_to_tricorder() {
local username="pihole"
# Set the permissions and owner
chmod 644 ${PIHOLE_DEBUG_LOG}
chmod 640 ${PIHOLE_DEBUG_LOG}
chown "$USER":"${username}" ${PIHOLE_DEBUG_LOG}
# Let the user know debugging is complete with something strikingly visual