]> git.feebdaed.xyz Git - 0xmirror/pi-hole.git/commitdiff
bare minimum first past fix for `pihoe api` command not working due to attempting...
authorAdam Warner <me@adamwarner.co.uk>
Mon, 14 Jul 2025 21:02:02 +0000 (22:02 +0100)
committerAdam Warner <me@adamwarner.co.uk>
Mon, 14 Jul 2025 21:02:02 +0000 (22:02 +0100)
Can't compain about them being readony if they're.. not.

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
pihole

diff --git a/pihole b/pihole
index c1566ed76e5fc580e3c6a6b54620c17a5168f94a..9688e9e9de9b7fbe7735e07285d3490b97f940f6 100755 (executable)
--- a/pihole
+++ b/pihole
@@ -9,7 +9,7 @@
 # This file is copyright under the latest version of the EUPL.
 # Please see LICENSE file for your rights under this license.
 
-readonly PI_HOLE_SCRIPT_DIR="/opt/pihole"
+PI_HOLE_SCRIPT_DIR="/opt/pihole"
 
 # PI_HOLE_BIN_DIR is not readonly here because in some functions (checkout),
 # they might get set again when the installer is sourced. This causes an
@@ -20,7 +20,7 @@ readonly colfile="${PI_HOLE_SCRIPT_DIR}/COL_TABLE"
 # shellcheck source=./advanced/Scripts/COL_TABLE
 source "${colfile}"
 
-readonly utilsfile="${PI_HOLE_SCRIPT_DIR}/utils.sh"
+utilsfile="${PI_HOLE_SCRIPT_DIR}/utils.sh"
 # shellcheck source=./advanced/Scripts/utils.sh
 source "${utilsfile}"