From efffdfa3fac1a8dd6d75d9690db1ae805bd5c583 Mon Sep 17 00:00:00 2001 From: Bjoern Welker Date: Fri, 30 Jan 2026 12:17:04 +0100 Subject: [PATCH] Document uploads in fix permissions script --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index b0cc7a9..6d22ba9 100644 --- a/README.md +++ b/README.md @@ -147,6 +147,19 @@ sudo mkdir -p /var/www/hellas/wawi/static/uploads sudo chown -R www-data:www-data /var/www/hellas/wawi/static/uploads ``` +## Fix‑Permissions Script (inkl. Uploads) +`/root/fix_wawi_permissions.sh` sollte auch das Upload‑Verzeichnis setzen: +```bash +#!/bin/sh +set -e +chown -R www-data:www-data /var/www/hellas/wawi +chmod 750 /var/www/hellas/wawi +chmod 640 /var/www/hellas/wawi/hellas.db +mkdir -p /var/www/hellas/wawi/static/uploads +chown -R www-data:www-data /var/www/hellas/wawi/static/uploads +systemctl restart hellas +``` + ## Backup (Beispiel) ```bash sudo /root/fix_wawi_permissions.sh