From da0774db951a1fedc612011a40862581e977e698 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Thu, 3 Mar 2016 20:29:33 -0500 Subject: [PATCH] Create automatically the favicon directory if missing --- check_setup.php | 5 +++++ docs/docker.markdown | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/check_setup.php b/check_setup.php index 4fb89e1..6c8a181 100644 --- a/check_setup.php +++ b/check_setup.php @@ -62,6 +62,11 @@ if (! is_writable(DATA_DIRECTORY)) { die('The data directory must be writeable by your web server user'); } +// Create favicon folder if missing +if (! is_dir(FAVICON_DIRECTORY)) { + mkdir(FAVICON_DIRECTORY); +} + // Check if favicon directory is writeable if (! is_writable(FAVICON_DIRECTORY)) { die('The favicon directory must be writeable by your web server user'); diff --git a/docs/docker.markdown b/docs/docker.markdown index 71086ff..b8d719e 100644 --- a/docs/docker.markdown +++ b/docs/docker.markdown @@ -28,4 +28,4 @@ Run container from the image: docker run -p 80:80 --name miniflux ``` -You can also mount the volume `/var/www/html/data` to save the data on the host machine. +You can also mount the volume `/var/www/html/data` to save the data on the host machine (this folder must have write access from the container web server user).