fix(farm): remove problematic postStart hook from farmos deployment

This commit is contained in:
fchinembiri 2026-05-21 20:04:02 +02:00
parent c2aef7d400
commit 7c7e72c2b6
1 changed files with 0 additions and 4 deletions

View File

@ -53,10 +53,6 @@ spec:
cpu: "200m" cpu: "200m"
limits: limits:
memory: "1Gi" memory: "1Gi"
lifecycle:
postStart:
exec:
command: ["sh", "-c", "cat <<EOF > /opt/drupal/web/sites/default/settings.local.php\n<?php\n\\$databases['default']['default'] = [\n 'database' => trim(getenv('FARMOS_DB_NAME') ?: ''),\n 'username' => trim(getenv('FARMOS_DB_USER') ?: ''),\n 'password' => trim(getenv('FARMOS_DB_PASS') ?: ''),\n 'prefix' => '',\n 'host' => trim(getenv('FARMOS_DB_HOST') ?: ''),\n 'port' => trim(getenv('FARMOS_DB_PORT') ?: ''),\n 'namespace' => 'Drupal\\\\Core\\\\Database\\\\Driver\\\\pgsql',\n 'driver' => 'pgsql',\n];\nEOF\nif ! grep -q \"settings.local.php\" /opt/drupal/web/sites/default/settings.php; then echo \"\nif (file_exists(\\$app_root . '/' . \\$site_path . '/settings.local.php')) {\n include \\$app_root . '/' . \\$site_path . '/settings.local.php';\n}\" >> /opt/drupal/web/sites/default/settings.php; fi"]
volumeMounts: volumeMounts:
- name: sites - name: sites
mountPath: /opt/drupal/web/sites mountPath: /opt/drupal/web/sites