From db21cf2c5e99f2369ce3b08a4472e02f74af282f Mon Sep 17 00:00:00 2001 From: Terranom674 Date: Thu, 20 Aug 2026 20:09:34 +0200 Subject: [PATCH] Make WebDAV placeholder source writable by runtime group --- runtime/sync-webdav.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/runtime/sync-webdav.sh b/runtime/sync-webdav.sh index 4edcbf1..b4bb607 100644 --- a/runtime/sync-webdav.sh +++ b/runtime/sync-webdav.sh @@ -94,6 +94,11 @@ python3 "$SCRIPT_DIR/lib/build_webdav_placeholder_source.py" \ --manifest "$MANIFEST" \ --mapping "$WEBDAV_MAPPING_FILE" +find "$WEBDAV_SOURCE_DIR" -type d -exec chgrp www-data -- {} + +find "$WEBDAV_SOURCE_DIR" -type d -exec chmod 0775 -- {} + +find "$WEBDAV_SOURCE_DIR" -type f -exec chgrp www-data -- {} + +find "$WEBDAV_SOURCE_DIR" -type f -exec chmod 0664 -- {} + + chgrp www-data -- "$WEBDAV_MAPPING_FILE" chmod 0640 -- "$WEBDAV_MAPPING_FILE"