Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 806ddfb69650
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: f3a3c969fe27
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Apr 11, 2020

  1. nextcloud: Review installation upgrade warning wording

    The new wording does not assume the user is upgrading.
    
    This is because a user could be setting up a new installation on 20.03
    on a server that has a 19.09 or before stateVersion!!
    
    The new wording ensures that confusion is reduced by stating that they
    do not have to care about the assumed 16→17 transition.
    
    Then, the wording explains that they should, and how to upgrade to
    version 18.
    
    It also reviews the confusing wording about "multiple" upgrades.
    
    * * *
    
    The only thing we cannot really do is stop a fresh install of 17 if
    there was no previous install, as it cannot be detected. That makes a
    useless upgrade forced for new users with old state versions.
    
    It is also important to state that they must set their package to
    Nextcloud 18, as future upgrades to Nextcloud will not allow an uprade
    from 17!
    
    I assume future warning messages will exist specifically stating what to
    do to go from 18 to 19, then 19 to 20, etc...
    
    (cherry picked from commit a1efbdb)
    samueldr committed Apr 11, 2020
    Copy the full SHA
    f3a3c96 View commit details
Showing with 13 additions and 4 deletions.
  1. +13 −4 nixos/modules/services/web-apps/nextcloud.nix
17 changes: 13 additions & 4 deletions nixos/modules/services/web-apps/nextcloud.nix
Original file line number Diff line number Diff line change
@@ -322,12 +322,21 @@ in {
Please migrate your configuration to config.services.nextcloud.poolSettings.
'')
++ (optional (versionOlder cfg.package.version "18") ''
A legacy Nextcloud install (from before NixOS 20.03) may be installed.
You're currently deploying an older version of Nextcloud. This may be needed
since Nextcloud doesn't allow major version upgrades across multiple versions (i.e. an
upgrade from 16 is possible to 17, but not to 18).
since Nextcloud doesn't allow major version upgrades that skip multiple
versions (i.e. an upgrade from 16 is possible to 17, but not 16 to 18).
It is assumed that Nextcloud will be upgraded from version 16 to 17.
* If this is a fresh install, there will be no upgrade to do now.
* If this server already had Nextcloud installed, first deploy this to your
server, and wait until the upgrade to 17 is finished.
Please deploy this to your server and wait until the migration is finished. After
that you can deploy to the latest Nextcloud version available.
Then, set `services.nextcloud.package` to `pkgs.nextcloud18` to upgrade to
Nextcloud version 18.
'');

services.nextcloud.package = with pkgs;