Compare commits

...

3 Commits

Author SHA1 Message Date
cf54575187 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.
Some checks failed
continuous-integration/drone/pr Build is failing
2026-06-02 16:24:48 +01:00
b4db12f09c Added ignores for .env, *.log, .DS_Store, Thumbs.db, and common editor/IDE files
Some checks failed
continuous-integration/drone/pr Build is failing
2026-06-02 16:23:11 +01:00
e4b87c8ab9 chown entire wp-content to ensure correct permissions
Some checks failed
continuous-integration/drone/pr Build is failing
2026-06-02 16:11:39 +01:00
2 changed files with 22 additions and 1 deletions

21
.gitignore vendored
View File

@ -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

View File

@ -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
"$@"