Solves weird permission issues in wp-content.

This commit is contained in:
Jonathan Rosenbaum 2025-06-22 20:19:26 +00:00
parent 9cfdd8b1d8
commit fc59ec3ca3
2 changed files with 3 additions and 2 deletions

View File

@ -91,7 +91,7 @@ If you want a **fully automated** upgrade, use the `wp-rocket-launch.sh` script:
✅ Automatically cleans up existing containers and volumes
✅ Builds the custom WordPress image
✅ Deploys the new version with minimal manual intervention
✅ Copies new installation files to production
✅ Copies new installation files to production and correct permissions
✅ Wordpress salt keys are shuffled
Alternatively, follow the manual upgrade process below.

View File

@ -40,8 +40,9 @@ else
fi
# Step 6: Copy new WordPress content after deployment
echo "📂 Copying new WordPress content to wp-content..."
echo "📂 Copying new WordPress content to wp-content and correct permissions..."
docker compose exec wordpress_${COMPOSE_PROJECT_NAME} bash -c "cp -a /var/www/html/wp-content-new/* /var/www/html/wp-content/"
docker compose exec wordpress_${COMPOSE_PROJECT_NAME} bash -c "/usr/bin/find /var/www/html/wp-content -type d -exec chmod 755 {} \; -o -type f -exec chmod 644 {} \;"
echo "✅ WordPress content successfully copied!"
# Step 7: Shuffle salts