-
wrote on Apr 13, 2020, 5:15 AM last edited by girish Apr 13, 2020, 6:19 AM
Hi,
I want to change "Default Files" , I see the guide https://portal.nextcloud.com/article/changing-default-files-15.html .
Please show me how to find folder "nextcloud/core/skeleton" in cloudron
Thanks -
wrote on Apr 13, 2020, 7:15 AM last edited by
Open the (web) terminal of your nextcloud instance and navigate to:
cd /app/code/core/skeleton
-
@minhbaop I have opened https://git.cloudron.io/cloudron/nextcloud-app/-/issues/78
@subven I think the issue is that the directory is not writable. We have to fix the package to support this by symlinking to /app/data.
-
wrote on Jun 8, 2020, 6:49 PM last edited by
It's possible to change the skeleton location using this variable in
config/config.php
'skeletondirectory' => '/path/to/nextcloud/core/skeleton',
Is there a writable space for this to point to?
-
wrote on Jun 8, 2020, 7:26 PM last edited by
Thanks @girish this totally worked.
Steps:
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
vi /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
vi /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
- add directory
-
@rcdncn Thanks. I have pushed your notes to our docs at https://cloudron.io/documentation/apps/nextcloud/#skeleton-directory