minostauros / tinyfilemanager-docker

Simplest dockerized tinyfilemanager
https://tinyfilemanager.github.io
8 stars 3 forks source link

not showing /data folder instead shows /app/tinyfilemanager folder? #4

Closed si458 closed 3 years ago

si458 commented 4 years ago

im not sure whats happened but for some reason, when you run the latest image now and map the /data folder to say /home/simon its now showing all the contents of /app/tinyfilemanager folder like the tinyfilemanager.php and not the contents of /data

Cediddi commented 4 years ago

this is a real bummer. config.php should be mountable as well as the default directory.

FireDrunk commented 3 years ago

@minostauros The bug is in: https://github.com/minostauros/tinyfilemanager-docker/blob/master/Dockerfile#L13

This should do the replace in config.php. I think tinyfilemanager.php contains the defaults, and config.php contains the overrides. Hence the $root_path in config.php wins.