Skip to content

Commit 9bdbe88

Browse files
committed
Update gravity path in list.sh
Signed-off-by: DL6ER <dl6er@dl6er.de>
1 parent d25240f commit 9bdbe88

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

advanced/Scripts/list.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,16 @@
1111
# Globals
1212
basename=pihole
1313
piholeDir=/etc/"${basename}"
14-
gravityDBfile="${piholeDir}/gravity.db"
14+
GRAVITYDB="${piholeDir}/gravity.db"
15+
# Source pihole-FTL from install script
16+
pihole_FTL="${piholeDir}/pihole-FTL.conf"
17+
if [[ -f "${pihole_FTL}" ]]; then
18+
source "${pihole_FTL}"
19+
fi
20+
21+
# Set this only after sourcing pihole-FTL.conf as the gravity database path may
22+
# have changed
23+
gravityDBfile="${GRAVITYDB}"
1524

1625
reload=false
1726
addmode=true

0 commit comments

Comments
 (0)