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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Changing Default Files in Nextcloud

    Nextcloud
    nextcloud
    4
    7
    4607
    Loading More Posts
    • 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.
    • minhbaop
      minhbaop last edited by girish

      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 Reply Quote 0
      • subven
        subven last edited by

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

        cd /app/code/core/skeleton
        
        1 Reply Last reply Reply Quote 2
        • girish
          girish Staff last edited by

          @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 Reply Quote 2
          • R
            rcdncn 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?

            1 Reply Last reply Reply Quote 0
            • girish
              girish Staff last edited by

              @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 Reply Quote 1
              • R
                rcdncn 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 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 Reply Quote 2
                • girish
                  girish Staff last edited by

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

                  1 Reply Last reply Reply Quote 1
                  • First post
                    Last post
                  Powered by NodeBB