diff --git a/README.md b/README.md index 676e734137ec45989280e4e1944e15783f70d889..861420efbec3a75dc49da1c2e738364b64774204 100644 --- a/README.md +++ b/README.md @@ -232,18 +232,8 @@ Don't worry, that's the mounted `.htaccess` file. All the other files' ownership ## Known issues -The logs of your init container will contain the following warning: - -``` -TASK [wordpress-init : Add uploads symlink] ************************************ -changed: [localhost] - [WARNING]: Cannot set fs attributes on a non-existent symlink target. follow -should be set to False to avoid this. -``` - -This is not a problem. This happens because the wp-uploads directory is -intentionally not mounted to the init container so a new WordPress can be -initialised while an old one is still running. +Take a look at https://open.greenhost.net/openappstack/wordpress-helm/-/issues +for issues that are already reported. ## Attribution diff --git a/wp-cli-docker/roles/wordpress-init/tasks/main.yml b/wp-cli-docker/roles/wordpress-init/tasks/main.yml index be25351dcc40e0324b058cea02e6ca9f61e0f31c..3332e6f23c74f06d779af84907c3594694f015ea 100644 --- a/wp-cli-docker/roles/wordpress-init/tasks/main.yml +++ b/wp-cli-docker/roles/wordpress-init/tasks/main.yml @@ -13,11 +13,12 @@ - name: Add uploads symlink file: src: "{{ WP_UPLOAD_DIR }}" - path: "{{ wordpress_homedir }}/wp-content/uploads" + path: "{{ WP_CONTENT_MOUNT }}/uploads" state: link # Force this, because the WP UPLOAD DIR is not mounted to the initContainer force: yes - when: WP_UPLOAD_DIR != wordpress_homedir + "/wp-content/uploads" + follow: no # FIXME: https://github.com/ansible/ansible/issues/50543 + when: WP_UPLOAD_DIR != WP_CONTENT_MOUNT + "/uploads" - name: Download WordPress shell: wp {{ cli_args }} core download