Solves weird permission issues in wp-content.
This commit is contained in:
parent
9cfdd8b1d8
commit
fc59ec3ca3
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user