Ensure 'versions' file exist on first start

Signed-off-by: casperklein <casperklein@users.noreply.github.com>
This commit is contained in:
casperklein
2025-10-26 12:05:13 +01:00
parent 770aa1f061
commit 1818e7e59e

View File

@@ -14,6 +14,7 @@ mkdir -p /var/log/pihole
chown -R pihole:pihole /etc/pihole/ /var/log/pihole/
# allow all users read version file (and use pihole -v)
touch /etc/pihole/versions
chmod 0644 /etc/pihole/versions
# allow pihole to access subdirs in /etc/pihole (sets execution bit on dirs)