Create automatically the favicon directory if missing

This commit is contained in:
Frederic Guillot 2016-03-03 20:29:33 -05:00
parent d7cb090aae
commit da0774db95
2 changed files with 6 additions and 1 deletions

View File

@ -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');

View File

@ -28,4 +28,4 @@ Run container from the image:
docker run -p 80:80 --name miniflux <yourname/imagename>
```
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).