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

chown of the www root folder. #371

Merged
merged 1 commit into from
Feb 1, 2019
Merged

Conversation

Neilpang
Copy link
Contributor

@Neilpang Neilpang commented Jan 31, 2019

fixes #369
change the owner of the web root folder, so that wordpress can upgrade.

In the interest of not breaking people, only chown the root directory when we've determined WordPress is not installed, the permissions on the directory are root:root/0:0 (and it is thus likely the directory was "helpfully" auto-created by Docker), and we are running as root (and thus able to chown).
@tianon
Copy link
Member

tianon commented Jan 31, 2019

I've pushed a minor adjustment to both add this to the docker-entrypoint.sh template file (so it will persist and @docker-library-bot won't revert it) and to make the logic a little bit more conservative:

In the interest of not breaking people, only chown the root directory when we've determined WordPress is not installed, the permissions on the directory are root:root/0:0 (and it is thus likely the directory was "helpfully" auto-created by Docker), and we are running as root (and thus able to chown).

LGTM cc @yosifkit

@tianon
Copy link
Member

tianon commented Feb 1, 2019

(current Travis failures are due to #372)

@yosifkit yosifkit merged commit e7e75d1 into docker-library:master Feb 1, 2019
tianon added a commit to infosiftr/stackbrew that referenced this pull request Feb 1, 2019
- `golang`: Alpine 3.9 (docker-library/golang#262)
- `haproxy`: Alpine 3.9 (docker-library/haproxy#82)
- `httpd`: Alpine 3.9 (docker-library/httpd#124)
- `mariadb`: 10.0.38, 5.5.63
- `memcached`: Alpine 3.9 (docker-library/memcached#45)
- `mysql`: 8.0.15
- `openjdk`: 13-ea+6, 12-ea+30, Alpine 3.9 (docker-library/openjdk#276)
- `php`: axe 5.6 (EOL), consistent `/var/www/html` permissions (docker-library/php#787)
- `postgres`: Alpine 3.9 (docker-library/postgres#550)
- `rabbitmq`: 3.7.11, 3.8.0-beta.2
- `redis`: Alpine 3.9 (redis/docker-library-redis#183)
- `ruby`: Alpine 3.9 (docker-library/ruby#262)
- `wordpress`: `chown` of `.` in very certain narrow cases (docker-library/wordpress#371)
Firefishy pushed a commit to Firefishy/official-images that referenced this pull request Feb 18, 2019
- `golang`: Alpine 3.9 (docker-library/golang#262)
- `haproxy`: Alpine 3.9 (docker-library/haproxy#82)
- `httpd`: Alpine 3.9 (docker-library/httpd#124)
- `mariadb`: 10.0.38, 5.5.63
- `memcached`: Alpine 3.9 (docker-library/memcached#45)
- `mysql`: 8.0.15
- `openjdk`: 13-ea+6, 12-ea+30, Alpine 3.9 (docker-library/openjdk#276)
- `php`: axe 5.6 (EOL), consistent `/var/www/html` permissions (docker-library/php#787)
- `postgres`: Alpine 3.9 (docker-library/postgres#550)
- `rabbitmq`: 3.7.11, 3.8.0-beta.2
- `redis`: Alpine 3.9 (redis/docker-library-redis#183)
- `ruby`: Alpine 3.9 (docker-library/ruby#262)
- `wordpress`: `chown` of `.` in very certain narrow cases (docker-library/wordpress#371)
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

Successfully merging this pull request may close these issues.

can not upgrade wordpress in the container
3 participants