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
  • Brite
  • 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 - Status | 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 10.0k 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 Do not disturb
        girishG Do not disturb
        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 Do not disturb
            girishG Do not disturb
            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 Do not disturb
                girishG Do not disturb
                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

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                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