Merge pull request 'chown entire wp-content to ensure correct permissions' (#60) from kawaiipunk/wordpress:main into main
Reviewed-on: https://git.coopcloud.tech/coop-cloud/wordpress/pulls/60
This commit is contained in:
+21
@@ -1 +1,22 @@
|
|||||||
|
# direnv
|
||||||
/.envrc
|
/.envrc
|
||||||
|
|
||||||
|
# Environment files (may contain secrets)
|
||||||
|
.env
|
||||||
|
|
||||||
|
# Logs
|
||||||
|
*.log
|
||||||
|
|
||||||
|
# OS metadata
|
||||||
|
.DS_Store
|
||||||
|
Thumbs.db
|
||||||
|
|
||||||
|
# Editor/IDE
|
||||||
|
*.swp
|
||||||
|
*.swo
|
||||||
|
*~
|
||||||
|
*.bak
|
||||||
|
.idea/
|
||||||
|
.vscode/
|
||||||
|
.project
|
||||||
|
.classpath
|
||||||
|
|||||||
@@ -75,5 +75,16 @@ Below are the instructions for the local relay.
|
|||||||
3. `abra app deploy <app-name>`
|
3. `abra app deploy <app-name>`
|
||||||
|
|
||||||
[abra]: https://git.autonomic.zone/autonomic-cooperative/abra
|
[abra]: https://git.autonomic.zone/autonomic-cooperative/abra
|
||||||
|
|
||||||
|
## Migrate from a non-Co-op Cloud Wordpress install
|
||||||
|
|
||||||
|
Make a .tar.gz backup of the site's wp-content dir and an .sql.gz backup of the database.
|
||||||
|
|
||||||
|
1. `abra app wp.example.com restore app wp-content.tar.gz`
|
||||||
|
2. `abra app wp.example.com restore db wordpress.sql.gz`
|
||||||
|
|
||||||
|
Lastly, if there's a domain name change, run a search and replace:
|
||||||
|
`abra app wp.example.com wp "search-replace https://old.example.com https://wp.example.com"`
|
||||||
|
|
||||||
[cc-traefik]: https://git.autonomic.zone/coop-cloud/traefik
|
[cc-traefik]: https://git.autonomic.zone/coop-cloud/traefik
|
||||||
[cc-postfix-relay]: https://git.autonomic.zone/coop-cloud/traefik
|
[cc-postfix-relay]: https://git.autonomic.zone/coop-cloud/traefik
|
||||||
|
|||||||
+1
-1
@@ -54,7 +54,7 @@ if [ ! -f "$UPLOADS_HTACCESS" ]; then
|
|||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chown -R www-data:www-data /var/www/html/wp-content/uploads/
|
chown -R --from=root:root www-data:www-data /var/www/html/wp-content/
|
||||||
|
|
||||||
if [ -n "$@" ]; then
|
if [ -n "$@" ]; then
|
||||||
"$@"
|
"$@"
|
||||||
|
|||||||
Reference in New Issue
Block a user