Merge pull request #84849 from samueldr/fix/nextcloud-upgrade-wording

nextcloud: Review installation upgrade warning wording
This commit is contained in:
worldofpeace 2020-04-10 22:55:20 -04:00 committed by GitHub
commit 15d5a2adc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -322,12 +322,21 @@ in {
Please migrate your configuration to config.services.nextcloud.poolSettings.
'')
++ (optional (versionOlder cfg.package.version "18") ''
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).
A legacy Nextcloud install (from before NixOS 20.03) may be installed.
Please deploy this to your server and wait until the migration is finished. After
that you can deploy to the latest Nextcloud version available.
You're currently deploying an older version of Nextcloud. This may be needed
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.
Then, set `services.nextcloud.package` to `pkgs.nextcloud18` to upgrade to
Nextcloud version 18.
'');
services.nextcloud.package = with pkgs;