Merge pull request 'chown entire wp-content to ensure correct permissions' (#60) from kawaiipunk/wordpress:main into main
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Reviewed-on: #60
This commit is contained in:
21
.gitignore
vendored
21
.gitignore
vendored
@ -1 +1,22 @@
|
||||
# direnv
|
||||
/.envrc
|
||||
|
||||
# Environment files (may contain secrets)
|
||||
.env
|
||||
|
||||
# Logs
|
||||
*.log
|
||||
|
||||
# OS metadata
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
|
||||
# Editor/IDE
|
||||
*.swp
|
||||
*.swo
|
||||
*~
|
||||
*.bak
|
||||
.idea/
|
||||
.vscode/
|
||||
.project
|
||||
.classpath
|
||||
|
||||
11
README.md
11
README.md
@ -75,5 +75,16 @@ Below are the instructions for the local relay.
|
||||
3. `abra app deploy <app-name>`
|
||||
|
||||
[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-postfix-relay]: https://git.autonomic.zone/coop-cloud/traefik
|
||||
|
||||
@ -54,7 +54,7 @@ if [ ! -f "$UPLOADS_HTACCESS" ]; then
|
||||
EOF
|
||||
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
|
||||
"$@"
|
||||
|
||||
Reference in New Issue
Block a user