How to remove NextCloud default files
Option 1: Create a new skeleton folder
- add directory
/app/data/skeleton
using web terminal chown www-data:www-data skeleton
- add files to the directory, also
chown
ing themtowww-data:www-data
- open config file with
nano /app/config/config.php
- insert line
'skeletondirectory' => '/app/data/skeleton'
, on a new line (i to enter insert mode) - press
esc
, then:wq
and<enter>
to write and save - new users will receive the contents of
/app/data/skeleton
on first log-in
Option 2: NO files added on first log-in
If you just want to remove the default skeleton (no files added on first launch), do the following:
- open config file with
nano /app/config/config.php
- insert line
'skeletondirectory' => ''
, on a new line (i to enter insert mode) - press
esc
, then:wq
and<enter>
to write and save