mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-11-14 00:56:44 +00:00
Fix: Drupal installation now completes successfully (permissions, PDO, and correct paths)
- Added database readiness wait and proper Drush installation command - Ensured /sites/default/files is writable before installation - Switched to /opt/drupal/web as canonical Drupal root - Added missing PHP extension pdo_mysql - Adjusted Dockerfile and Compose volume paths - Drupal installation now runs successfully end-to-end Details: https://chatgpt.com/share/6905bb12-6de8-800f-be8c-b565d5ec6cdb
This commit is contained in:
11
roles/web-app-drupal/tasks/00_permissions.yml
Normal file
11
roles/web-app-drupal/tasks/00_permissions.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
- name: "Ensure sites/default/files exists and is writable"
|
||||
command: >
|
||||
docker exec -u root {{ DRUPAL_CONTAINER }} bash -lc
|
||||
"set -e;
|
||||
d='{{ DRUPAL_DOCKER_HTML_PATH }}/sites/default';
|
||||
f=\"$d/files\";
|
||||
mkdir -p \"$f\";
|
||||
chown -R {{ DRUPAL_USER }}:{{ DRUPAL_USER }} \"$d\";
|
||||
find \"$d\" -type d -exec chmod 775 {} +;
|
||||
find \"$d\" -type f -exec chmod 664 {} +;"
|
||||
changed_when: true
|
||||
Reference in New Issue
Block a user