How do I setup skeleton folders in Nextcloud AIO?

I have followed instructions ‘How to change default files by creating a custom skeleton directory?’ at:

https://github.com/nextcloud/all-in-one?tab=readme-ov-file#how-to-change-default-files-by-creating-a-custom-skeleton-directory

The new skeleton folder location works fine but now I want add/delete files and folders in the new skeleton folder.

What commands do I need to achieve this please?

Here’s what I’ve done so far:

#############################

COPY EXISTING SKELETON FOLDER

#############################
sudo docker cp --follow-link /var/lib/docker/volumes/nextcloud_aio_nextcloud/_data/core/skeleton/ nextcloud-aio-nextcloud:/mnt/ncdata/skeleton/

#############################

SET NEW SKELETON FOLDER PERMISIONS

#############################
sudo docker exec nextcloud-aio-nextcloud chown -R 33:0 /mnt/ncdata/skeleton/
sudo docker exec nextcloud-aio-nextcloud chmod -R 750 /mnt/ncdata/skeleton/

#############################

SET NEW SKELETON FOLDER LOCATION IN CONFIG FILE

#############################
sudo docker exec --user www-data -it nextcloud-aio-nextcloud php occ config:system:set skeletondirectory --value=“/mnt/ncdata/skeleton”

Many many thanks!

You can copy/edit in place/etc whatever you want in that folder you created:

nextcloud-aio-nextcloud:/mnt/ncdata/skeleton/

For example you could use docker cp (copy)to move additional files from your host directly into it:


sudo docker cp foo.txt nextcloud-aio-nextcloud:/mnt/ncdata/skeleton/

hey @jtr thanks for this :+1:

is there any way that this skeleton directory can be mounted into the host, so that files and directory can be edited/copied in the host GUI?