Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/pi-hole/pi-hole.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Schaper <dan.schaper@pi-hole.net>2022-07-07 23:41:45 +0300
committerGitHub <noreply@github.com>2022-07-07 23:41:45 +0300
commitef71ca05a9cfb49ae322a0ac9ace56b604d8a425 (patch)
tree2f42e8c270c9fa2456fae477ea675d1ad8f6aefa
parent04abc4dacdfa1f297e05c1689021b30cbbb7822b (diff)
parent48d5d6bed2d1fe615ad42871b1b4315d261dd2bc (diff)
Merge pull request #4794 from pi-hole/fix/mkdir_alwaysv5.11.2
Always create log directory if it doesn't exist
-rwxr-xr-xautomated install/basic-install.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh
index 939f4b45..fa8934c4 100755
--- a/automated install/basic-install.sh
+++ b/automated install/basic-install.sh
@@ -2796,6 +2796,11 @@ main() {
stop_service pihole-FTL &> /dev/null
+ if [ -d /var/log/pihole/ ]; then
+ mkdir /var/log/pihole/
+ chmod 0775 /var/log/pihole/
+ fi
+
# Special handling for pihole-FTL.log -> pihole/FTL.log
if [ -f /var/log/pihole-FTL.log ] && [ ! -L /var/log/pihole-FTL.log ]; then
# /var/log/pihole-FTL.log -> /var/log/pihole/FTL.log