-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add per default the apps-external directory in config.php during installation #30889
Conversation
Codecov Report
@@ Coverage Diff @@
## master #30889 +/- ##
============================================
- Coverage 65.17% 65.16% -0.01%
- Complexity 18352 18353 +1
============================================
Files 1200 1200
Lines 69701 69709 +8
Branches 1283 1283
============================================
- Hits 45426 45425 -1
- Misses 23901 23910 +9
Partials 374 374
Continue to review full report at Codecov.
|
f43a88d
to
f93c49c
Compare
@VicDeo I followed your advice and added the apps2/ directory by default including the .gitkepp file in it + removing the obsolete directory creation logic. |
|
@PVince81 |
f93c49c
to
aa82479
Compare
@VicDeo |
aa82479
to
86d6ff5
Compare
@PVince81 |
3fce607
to
374825d
Compare
I am very reluctant with this change - it might have implications on:
"apps2" as name is not very descriptive -> might be confusing for people. |
I had a discussion with @PVince81 about the reason for this PR, he maybe can add his opinion. |
we could use apps as the apps that are delivered with the tar file and apps-external as all other apps that are not delivered in the tar file? That would be helpful for the upgrade just making a copy of that folder to the new ownCloud |
I am happy to change the name of
|
65b29ee
to
47e1460
Compare
@cdamken @patrickjahns |
Within our docker containers we are writing this config file before the installation: https://github.com/owncloud-docker/base/blob/master/rootfs/root/owncloud/config.php |
Thanks for clarification @tboerger @VicDeo I did all the changes requested, but github does not recognize one change made and keeps your request open? |
Hey! I'm GitMate.io! This pull request is being rebased automatically. Please DO NOT push while rebase is in progress or your changes would be lost permanently |
Would also like to have final agreement from @pmaier1 @felixboehm EDIT Some more thoughts - with ownCloud 11 we want to move away from a writeable |
c61ddb6
to
6fccc5b
Compare
Automated rebase with GitMate.io was successful! 🎉 |
] | ||
]; | ||
|
||
$config->setSystemValues($defaultAppsPaths); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we do this, it will be convenient for automated testing, because we will always have specific values of apps_paths
in the config - no need for test scenarios to jump through hoops to work out what they should/could be.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we do this, it will be convenient for automated testing, because we will always have specific values of apps_paths in the config - no need for test scenarios to jump through hoops to work out what they should/could be.
The large goal is moving forward with immutable config.php
- and being able to change the apps_path via a command will not work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That will be a challenge for any tests that want to adjust config.php
values for testing purposes
I guess when testing remote "black-box" installs, we might anyway skip tests that mess with config.php
, since those sort of tests might break the remote system and not (be able to) put it back.
Anyway, a conversation for another place.
@patrickjahns The broader discussion about a design change including config.php is busting this PR. I propose to merge this PR to ease admin life and have the config.php management discussion in a seperate thread. |
php-cs-fixer is not happy I think we can at least merge this for master / OC 11 |
6fccc5b
to
c7bc748
Compare
I just updated the PR which solved the conflict in Makefile. |
c7bc748
to
4b4514a
Compare
@PVince81 approve? mergable ? |
4b4514a
to
d408ae8
Compare
Just squashed the commits |
@mmattel please backport @phil-davis will this require specific changes in our testing pipeline ? or were you referring to possible future changes we could do ? |
|
…s2_on_initial_install Add per default the apps-external directory in config.php during installation
It just means we can run acceptance tests that check installing an app in the secondary apps path without having to modify |
Backport |
Description
When you install the system, a config.php parameter is added to enable the apps-external directory.
An empty apps-external/ directory has been added as part of defaut shipped directories.
Note: if you follow the documentation and run the setup/permisions script, all needed directories including apps-external/ will get correct permissions and ownership.
Related Issue
#29839 ([Feature Request] make the apps-external folder default used in new installations)
Motivation and Context
See the issue description regarding the benefits.
How Has This Been Tested?
Install a new system from scratch.
Screenshots (if appropriate):
Types of changes
Checklist:
A documentation PR follows asap.
@settermjd fyi