diff --git a/README.md b/README.md index f43f16adb69fe8685e992c8e395a3ab78d64fc91..676e734137ec45989280e4e1944e15783f70d889 100644 --- a/README.md +++ b/README.md @@ -220,10 +220,10 @@ wp-content contents to the pod with the following command: $ kubectl cp uploads/ wordpress-master-0:/var/www/wp-uploads-mount ``` -You'll have to change the ownership of the files to the `www-data` user: +You'll have to change the ownership of the files to UID 33 (the `www-data` user in the WordPress container): ```bash -$ kubectl exec -it wordpress-master-0 -- chown -R www-data:www-data /var/www/wp-uploads-mount +$ kubectl exec -it wordpress-master-0 -- chown -R 33:33 /var/www/wp-uploads-mount ``` Note: this will say diff --git a/wp-cli-docker/Dockerfile b/wp-cli-docker/Dockerfile index 148235ba38e150cf529088120a6b3be4d5f999ec..7a2b6a250e071253d9293826950cd50484562769 100644 --- a/wp-cli-docker/Dockerfile +++ b/wp-cli-docker/Dockerfile @@ -21,6 +21,7 @@ RUN chown -R 33:33 /var/local/ansible; \ WORKDIR /var/local/ansible -USER www-data +# User 33 is www-data in the PHP container +USER 33 CMD ["ansible-playbook", "wpdeploy.yml", "-e", "@secrets/secret-vars.yaml"]