Skip to content
Snippets Groups Projects
Verified Commit 31b9c696 authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

change all references to the www-data user to 33

parent 2640200b
No related branches found
No related tags found
1 merge request!28Resolve "Restarted pods sometimes fail to init"
Pipeline #5920 passed with stage
in 42 seconds
...@@ -220,10 +220,10 @@ wp-content contents to the pod with the following command: ...@@ -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 $ 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 ```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 Note: this will say
......
...@@ -21,6 +21,7 @@ RUN chown -R 33:33 /var/local/ansible; \ ...@@ -21,6 +21,7 @@ RUN chown -R 33:33 /var/local/ansible; \
WORKDIR /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"] CMD ["ansible-playbook", "wpdeploy.yml", "-e", "@secrets/secret-vars.yaml"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment