We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 460f835 commit ca00ffaCopy full SHA for ca00ffa
pihole
@@ -24,7 +24,12 @@ utilsfile="${PI_HOLE_SCRIPT_DIR}/utils.sh"
24
source "${utilsfile}"
25
26
versionsfile="/etc/pihole/versions"
27
-source "${versionsfile}"
+if [ -f "${versionsfile}" ]; then
28
+ # Only source versionsfile if the file exits
29
+ # fixes a warning during installation where versionsfile does not exist yet
30
+ # but gravity calls `pihole -status` and thereby sourcing the file
31
+ source "${versionsfile}"
32
+fi
33
34
webpageFunc() {
35
source "${PI_HOLE_SCRIPT_DIR}/webpage.sh"
0 commit comments