diff --git a/templates/nextcloud-onlyoffice-config.yaml b/templates/nextcloud-onlyoffice-config.yaml index 55111373256cfc89d90602f696cb499bdd432161..6706f19fb774eebb23bde8d9f073a4a81f5e4598 100644 --- a/templates/nextcloud-onlyoffice-config.yaml +++ b/templates/nextcloud-onlyoffice-config.yaml @@ -131,6 +131,9 @@ data: # Extract app into target directory. The app tars usually contain a folder # named after the app name tar -xf "{{ .name }}.tar.gz" -C "$target_directory" + # Ownership in the archive can be anything. Nextcloud wants it to be + # www-data. + chown -R 33:33 "$target_directory" rm "{{ .name }}.tar.gz" fi {{- else }}