From e4b87c8ab90b7aae0780d60499deea2cde2d2bcd Mon Sep 17 00:00:00 2001 From: kawaiipunk Date: Tue, 2 Jun 2026 16:11:39 +0100 Subject: [PATCH 1/4] chown entire wp-content to ensure correct permissions --- entrypoint.sh.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh.tmpl b/entrypoint.sh.tmpl index 304efaf..13db3cc 100644 --- a/entrypoint.sh.tmpl +++ b/entrypoint.sh.tmpl @@ -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 www-data:www-data /var/www/html/wp-content/ if [ -n "$@" ]; then "$@" -- 2.49.0 From b4db12f09caec96b32ef49263bbc9dfe88e9d904 Mon Sep 17 00:00:00 2001 From: kawaiipunk Date: Tue, 2 Jun 2026 16:23:11 +0100 Subject: [PATCH 2/4] Added ignores for .env, *.log, .DS_Store, Thumbs.db, and common editor/IDE files --- .gitignore | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.gitignore b/.gitignore index 37b52cc..e2e3ed6 100644 --- a/.gitignore +++ b/.gitignore @@ -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 -- 2.49.0 From cf54575187f1c8ec9ec335daeffe53fda66cb61d Mon Sep 17 00:00:00 2001 From: kawaiipunk Date: Tue, 2 Jun 2026 16:24:48 +0100 Subject: [PATCH 3/4] restricts ownership changes to files still owned by root (e.g., from the image build). On subsequent restarts, files already owned by www-data are skipped entirely, avoiding a full recursive write cycle. --- entrypoint.sh.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh.tmpl b/entrypoint.sh.tmpl index 13db3cc..6548983 100644 --- a/entrypoint.sh.tmpl +++ b/entrypoint.sh.tmpl @@ -54,7 +54,7 @@ if [ ! -f "$UPLOADS_HTACCESS" ]; then EOF fi -chown -R www-data:www-data /var/www/html/wp-content/ +chown -R --from=root:root www-data:www-data /var/www/html/wp-content/ if [ -n "$@" ]; then "$@" -- 2.49.0 From 65e716fa20038f6d84f8e76703f6e8fec727c671 Mon Sep 17 00:00:00 2001 From: kawaiipunk Date: Wed, 3 Jun 2026 19:21:22 +0100 Subject: [PATCH 4/4] Added Document how to migrate an existing WP site #15 --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 75e0353..99435e2 100644 --- a/README.md +++ b/README.md @@ -75,5 +75,16 @@ Below are the instructions for the local relay. 3. `abra app deploy ` [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 -- 2.49.0