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

nextcloud: Review installation upgrade warning wording

Changed files
+13 -4
nixos
modules
services
web-apps
+13 -4
nixos/modules/services/web-apps/nextcloud.nix
···
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).
-
Please deploy this to your server and wait until the migration is finished. After
-
that you can deploy to the latest Nextcloud version available.
'');
services.nextcloud.package = with pkgs;
···
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 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;