From b1e783eb30d530c1052d4ffd0bcfae22b5e46c3c Mon Sep 17 00:00:00 2001 From: pieter Date: Tue, 25 Nov 2025 14:16:09 +0000 Subject: [PATCH] =?UTF-8?q?templates/deployment.yaml=20=E3=82=92=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/deployment.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/templates/deployment.yaml b/templates/deployment.yaml index 4ba5746..f13efaf 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -30,6 +30,9 @@ spec: echo "Copying WordPress core files to ephemeral storage..." cp -rp /usr/src/wordpress/* /var/www/html/ + echo "Removing temporary wp-content from core files..." + rm -rf /var/www/html/wp-content + if [ ! -d /var/www/html-persistent/wp-content ]; then echo "Initializing wp-content directory..." mkdir -p /var/www/html-persistent/wp-content @@ -38,9 +41,12 @@ spec: echo "wp-content already exists, preserving user data" fi - rm -rf /var/www/html/wp-content + echo "Creating symlink for wp-content..." ln -sf /var/www/html-persistent/wp-content /var/www/html/wp-content + echo "Verifying symlink..." + ls -la /var/www/html/ | grep wp-content + echo "Generating wp-config.php from Secret..." cat > /var/www/html/wp-config.php << 'EOF'