mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
Merge pull request #2401 from pi-hole/fix/checkout-readonly
Fix checkout error due to readonly variable
This commit is contained in:
commit
308b296285
1 changed files with 6 additions and 1 deletions
7
pihole
7
pihole
|
@ -12,7 +12,12 @@
|
|||
readonly PI_HOLE_SCRIPT_DIR="/opt/pihole"
|
||||
readonly gravitylist="/etc/pihole/gravity.list"
|
||||
readonly blacklist="/etc/pihole/black.list"
|
||||
readonly setupVars="/etc/pihole/setupVars.conf"
|
||||
|
||||
# setupVars is 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"
|
||||
|
||||
readonly colfile="${PI_HOLE_SCRIPT_DIR}/COL_TABLE"
|
||||
source "${colfile}"
|
||||
|
||||
|
|
Loading…
Reference in a new issue