Skip to content

Commit dd9b0c5

Browse files
authored
Merge pull request #12925 from scubamuc/master
Update package_upgrade.rst
2 parents d03f6f4 + 09a1259 commit dd9b0c5

File tree

1 file changed

+26
-79
lines changed

1 file changed

+26
-79
lines changed
+26-79
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
====================
2-
Upgrade via packages
3-
====================
1+
=========================
2+
Upgrade via snap packages
3+
=========================
44

55
Upgrade quickstart
66
------------------
@@ -12,102 +12,49 @@ Combining Nextcloud with snapd makes it a perfect fit for IoT or scalable enviro
1212
Snapd is a secure and robust technology which the Nextcloud snap team has embraced.
1313

1414
However, the snap is opinionated.
15-
- Nextcloud snap uses Apache.
16-
- Nextcloud snap uses MySQL.
17-
- Nextcloud snap uses PHP.
18-
In other words, it's not very tinker-friendly.
15+
16+
- Nextcloud snap uses recommended Apache.
17+
- Nextcloud snap uses recommended MySQL.
18+
- Nextcloud snap uses recommended PHP.
1919

2020
Installation
2121
------------
2222

23-
**Ubuntu**
23+
**On Ubuntu**
2424

25-
sudo snap install nextcloud
25+
* https://snapcraft.io/nextcloud
26+
* Install Nextcloud ``sudo snap install nextcloud``
2627

2728
**All other distros**
28-
29-
(`be warned <https://github.com/nextcloud-snap/nextcloud-snap/wiki/Why-Ubuntu-is-the-only-supported-distro/>`_)
29+
`be warned <https://github.com/nextcloud-snap/nextcloud-snap/wiki/Why-Ubuntu-is-the-only-supported-distro/>`_
3030

3131
By default the latest stable Nextcloud snap release will be installed and it will automatically update to
32-
subsequent stable releases, but there are [other releases available as well](https://github.com/nextcloud/nextcloud-snap/wiki/Release-strategy)
33-
and you have full control of [automatic updates](https://github.com/nextcloud-snap/nextcloud-snap/wiki/Managing-automatic-updates).
32+
subsequent stable releases, but there are `other releases available as well <https://github.com/nextcloud/nextcloud-snap/wiki/Release-strategy>`_
33+
and you have full control of `automatic updates <https://github.com/nextcloud-snap/nextcloud-snap/wiki/Managing-automatic-updates>`_.
3434

3535
After installation, Nextcloud will start automatically.
3636
Assuming you and the device on which it was installed are on the same network, you will reach the Nextcloud
37-
installation by visiting `<hostname>.local` or the IP address of the instance in your browser.
38-
If your hostname is `localhost` or `localhost.localdomain`, like on an Ubuntu Core device,
39-
`nextcloud.local` will be used instead.
40-
41-
* Go to https://docs.snapcraft.io/installing-snapd/6735
42-
* Type the command to install snapd
43-
* Install Nextcloud ($ sudo snap install nextcloud)
37+
installation by visiting ``<hostname>.local`` or the IP address of the instance in your browser.
38+
If your hostname is ``localhost`` or ``localhost.localdomain``, like on an Ubuntu Core device,
39+
``nextcloud.local`` will be used instead.
4440

4541
1st login
4642
---------
4743

48-
After a successful install, assuming you and the device on which it was installed are on the
49-
same network, you should be able to reach the Nextcloud installation by visiting .local in
50-
your browser. If your hostname is localhost or localhost.localdomain, like on an Ubuntu Base
51-
device (IoT), nextcloud.local will be used instead.
52-
53-
You will be asked to create a password for "admin" and your favourite cloud will be ready
54-
55-
* Make a :doc:`fresh backup <backup>`.
56-
* Upgrade your Nextcloud snap: sudo snap refresh nextcloud
57-
* Run :ref:`occ upgrade <command_line_upgrade_label>`.
58-
* Take your Nextcloud server out of :ref:`maintenance mode
59-
<maintenance_commands_label>`.
60-
* Re-enable third-party apps.
44+
Upon visiting the Nextcloud installation for the first time, you will be prompted to enter an admin username
45+
and password before Nextcloud is initialised. This may take a while depending on resources and the device.
46+
After you provide that information you will be logged in and able to install apps, create users, and upload files.
6147

6248
Upgrade tips
6349
------------
64-
Upgrading Nextcloud from a Snap is just like upgrading any snap package.
65-
For example:
66-
67-
sudo snap refresh nextcloud
68-
69-
Your Snap package manager only upgrades the current Nextcloud Snap. Then
70-
your Nextcloud server is immediately put into maintenance mode. You may not see
71-
this until you refresh your Nextcloud page.
72-
73-
.. figure:: images/upgrade-1.png
74-
:scale: 75%
75-
:alt: Nextcloud status screen informing users that it is in maintenance mode.
76-
77-
Then use ``nextcloud.occ`` to complete the upgrade. You must run ``nextcloud.occ`` as root. This example is for Debian/Ubuntu::
7850

79-
sudo nextcloud.occ upgrade
51+
By default the Nextcloud snap will automatically update to subsequent stable releases. You may however upgrade
52+
manually too by issuing the command:
8053

81-
This example is for CentOS/RHEL/Fedora::
82-
83-
sudo /snap/bin/nextcloud.occ
84-
85-
.. _skipped_release_upgrade_label:
86-
87-
Upgrading across skipped releases
88-
---------------------------------
89-
90-
.. seealso::
91-
92-
If you upgrade from a previous major version please see :ref:`critical changes<critical-changes>` first.
93-
94-
It is best to update your Nextcloud installation with every new point release,
95-
and to never skip any major releases. While this requirement is being worked on,
96-
for the moment If you have skipped any major releases you can bring your
97-
Nextcloud current with these steps:
98-
99-
If you are using a Snap package:
100-
sudo snap refresh nextcloud --stable
101-
102-
If you did **not** install via a Snap package:
103-
104-
#. Upgrade your current version to the latest point release
105-
#. Upgrade your current version to the next major release
106-
#. Run upgrade routine
107-
#. Repeat from step 2 until you reach the last available major release
54+
``sudo snap refresh nextcloud``
55+
56+
If the upgrade fails you can easily revert to the last working version by issuing the command:
10857

109-
You'll find previous Nextcloud releases in the `Nextcloud Server Changelog
110-
<https://nextcloud.com/changelog/>`_.
58+
``sudo snap revert nextcloud``
11159

112-
If upgrading via your Snap package manager fails, then you must perform a
113-
:doc:`manual_upgrade`.
60+
Further documentation, an `extensive Wiki <https://github.com/nextcloud-snap/nextcloud-snap/wiki>`_ and `FAQ's <https://github.com/nextcloud-snap/nextcloud-snap/wiki/FAQ's>`_ can be found on the `developers GitHub <https://github.com/nextcloud-snap/nextcloud-snap>`_.

0 commit comments

Comments
 (0)