]> git.feebdaed.xyz Git - 0xmirror/pi-hole.git/commitdiff
Make LOGFILE readonly after assignment
authorDan Schaper <dan.schaper@pi-hole.net>
Sat, 31 May 2025 15:23:24 +0000 (08:23 -0700)
committerDan Schaper <dan.schaper@pi-hole.net>
Sat, 31 May 2025 15:23:24 +0000 (08:23 -0700)
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
pihole

diff --git a/pihole b/pihole
index 2c3a433b029d4d09b446ebe2f5d629106d4a001d..1a5cdf9e9244101b5675b5f8ce128550f623c2f9 100755 (executable)
--- a/pihole
+++ b/pihole
@@ -389,8 +389,8 @@ tailFunc() {
   echo -e "  ${INFO} Press Ctrl-C to exit"
 
   # Get logfile path
-  readonly LOGFILE
   LOGFILE=$(getFTLConfigValue files.log.dnsmasq)
+  readonly LOGFILE
 
   # Strip date from each line
   # Color blocklist/denylist/wildcard entries as red