Skip to content

Commit e7af42a

Browse files
authored
Merge pull request pi-hole#2897 from pi-hole/fix/readOnlyBin
Remove readonly attribute of the PI_HOLE_BIN_DIR declaration in pihole
2 parents b9fed8f + 79b8dac commit e7af42a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pihole

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
# Please see LICENSE file for your rights under this license.
1111

1212
readonly PI_HOLE_SCRIPT_DIR="/opt/pihole"
13-
readonly PI_HOLE_BIN_DIR="/usr/local/bin"
1413
readonly gravitylist="/etc/pihole/gravity.list"
1514
readonly blacklist="/etc/pihole/black.list"
1615

17-
# setupVars is not readonly here because in some funcitons (checkout),
16+
# setupVars and PI_HOLE_BIN_DIR are not readonly here because in some funcitons (checkout),
1817
# it might get set again when the installer is sourced. This causes an
1918
# error due to modifying a readonly variable.
2019
setupVars="/etc/pihole/setupVars.conf"
20+
PI_HOLE_BIN_DIR="/usr/local/bin"
2121

2222
readonly colfile="${PI_HOLE_SCRIPT_DIR}/COL_TABLE"
2323
source "${colfile}"

0 commit comments

Comments
 (0)