lobaro / xentral-docker

Docker image for Xentral ERP (WaWision)
14 stars 9 forks source link

Set permissions on config and userdata so that the installer can continue #3

Closed arbesulo closed 3 years ago

arbesulo commented 3 years ago

One of the checks that the Xentral installer performs is, if it can write in the config and userdata folders.

Though the documentation says that the given permissions are enough, the installer actually hides the continue button unless the apache user (www-data) has write permissions on the above mentioned folders.

This PR fixes the issue in 2 steps:

  1. Changes on the Dockerfile so that those folders are created by the apache user. Starting a regular container via docker run ... assigns a generic volume to those folders with write permissions for www-data
  2. Changes on the docker-compose.yml to use named volumes instead of absolute paths. This solves a problem on mac, where the absolute volumes are (generally) paths from the virtual machine used in Docker for mac, which are all owned by root
niondir commented 3 years ago

Thanks for the contribution!