From 79b8dac0fa7b93e4082444a98f94bc920805b319 Mon Sep 17 00:00:00 2001 From: Adam Warner Date: Fri, 30 Aug 2019 22:06:14 +0100 Subject: [PATCH] Remove readonly attribute of the PI_HOLE_BIN_DIR declaration in pihole Signed-off-by: Adam Warner --- pihole | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pihole b/pihole index 5befe926..d2ff3645 100755 --- a/pihole +++ b/pihole @@ -10,14 +10,14 @@ # Please see LICENSE file for your rights under this license. readonly PI_HOLE_SCRIPT_DIR="/opt/pihole" -readonly PI_HOLE_BIN_DIR="/usr/local/bin" readonly gravitylist="/etc/pihole/gravity.list" readonly blacklist="/etc/pihole/black.list" -# setupVars is not readonly here because in some funcitons (checkout), +# setupVars and PI_HOLE_BIN_DIR are not readonly here because in some funcitons (checkout), # it might get set again when the installer is sourced. This causes an # error due to modifying a readonly variable. setupVars="/etc/pihole/setupVars.conf" +PI_HOLE_BIN_DIR="/usr/local/bin" readonly colfile="${PI_HOLE_SCRIPT_DIR}/COL_TABLE" source "${colfile}"