Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Nextcloud
  3. Changing Default Files in Nextcloud

Changing Default Files in Nextcloud

Scheduled Pinned Locked Moved Solved Nextcloud
nextcloud
7 Posts 4 Posters 8.6k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • minhbaopM Offline
    minhbaopM Offline
    minhbaop
    wrote on last edited by girish
    #1

    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

    1 Reply Last reply
    0
    • subvenS Offline
      subvenS Offline
      subven
      wrote on last edited by
      #2

      Open the (web) terminal of your nextcloud instance and navigate to:

      cd /app/code/core/skeleton
      
      1 Reply Last reply
      2
      • girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #3

        @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.

        1 Reply Last reply
        2
        • R Offline
          R Offline
          rcdncn
          wrote on last edited by
          #4

          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?

          1 Reply Last reply
          0
          • girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #5

            @rcdncn Ah nice, I wasn't aware of that option. You can create a directory (/app/data/skelton) using the Web Terminal, change the ownership of the directory of www-data and then set the config to that directory.

            1 Reply Last reply
            1
            • R Offline
              R Offline
              rcdncn
              wrote on last edited by
              #6

              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 chowning themto www-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
              1 Reply Last reply
              4
              • girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by
                #7

                @rcdncn Thanks. I have pushed your notes to our docs at https://cloudron.io/documentation/apps/nextcloud/#skeleton-directory

                1 Reply Last reply
                1
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Bookmarks
                • Search