From 7c7e72c2b6373adfc29c4be98a201e42e397ee25 Mon Sep 17 00:00:00 2001 From: fchinembiri Date: Thu, 21 May 2026 20:04:02 +0200 Subject: [PATCH] fix(farm): remove problematic postStart hook from farmos deployment --- k8s/farm/04-apps.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/k8s/farm/04-apps.yaml b/k8s/farm/04-apps.yaml index 8254a75..f3e20cf 100644 --- a/k8s/farm/04-apps.yaml +++ b/k8s/farm/04-apps.yaml @@ -53,10 +53,6 @@ spec: cpu: "200m" limits: memory: "1Gi" - lifecycle: - postStart: - exec: - command: ["sh", "-c", "cat < /opt/drupal/web/sites/default/settings.local.php\n 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: - name: sites mountPath: /opt/drupal/web/sites