Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong permissions after install/update #5

Open
laurent-simon opened this issue Feb 2, 2016 · 0 comments
Open

Wrong permissions after install/update #5

laurent-simon opened this issue Feb 2, 2016 · 0 comments

Comments

@laurent-simon
Copy link

Jeedom runs on NGINX, so with the www-data user. To allow to execute all administration tasks from the browser, all Jeedom files must be owned by the www-data user (it's totally unsecure, but it's builds like that).

With these Docker images ( jeedom-data and jeedom-all-in-one ), after the installation and/or updates when the container starts, all Jeedom file permissions are messed up. The owner of Jeedom files is/becomes root instead of www-data. So Jeedom is not able to run properly.

Fix the file ownership manually is not a durable solution because, later on startup during the next update, the files ownership will be messed up again.

To fix it, in the /docker-entrypoint.sh script (or in /entrypoint.sh on an existing container), replace:

php /usr/share/nginx/www/jeedom/install/install.php mode=force

by:

sudo -u www-data -g www-data php /usr/share/nginx/www/jeedom/install/install.php mode=force

All files ownership problems will be fixed durably without altering Jeedom's installation/update scripts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant