@@ -5,29 +5,39 @@ Upgrade via packages
55Upgrade quickstart
66------------------
77
8- One effective, if unofficial method for keeping Nextcloud current on Linux servers is by configuring
9- your system to use Nextcloud via a self-contained "Snap" package: a technology allowing users to
10- always have the latest version of an "app".
11-
12- That version from Canonical is quite restrictive. It is not aimed at developers or advanced users
13- who would want to tune their configuration by installing extra features. It is aimed at end-users
14- who want a no-brainer solution. Install it, use it. No need to worry about updating Nextcloud any
15- more .
16-
17- It will work for as long as Canonical pushes releases, just like with any other Linux package
18- maintained independently of Nextcloud .
8+ Nextcloud snap is an unofficial Nextcloud designed to be easy to install and simple to maintain.
9+ The ideal Nextcloud snap is an "install and forget" Nextcloud instance that works on most
10+ architectures and updates itself without needing administrative skills.
11+ Combining Nextcloud with snapd makes it a perfect fit for IoT or scalable environments.
12+ Snapd is a secure and robust technology which the Nextcloud snap team has embraced.
13+
14+ 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 .
1919
2020Installation
2121------------
2222
2323**Ubuntu **
2424
25- $ sudo snap install nextcloud
25+ sudo snap install nextcloud
2626
2727**All other distros **
2828
2929(`be warned <https://github.com/nextcloud-snap/nextcloud-snap/wiki/Why-Ubuntu-is-the-only-supported-distro/ >`_)
3030
31+ 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).
34+
35+ After installation, Nextcloud will start automatically.
36+ 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+
3141* Go to https://docs.snapcraft.io/installing-snapd/6735
3242* Type the command to install snapd
3343* Install Nextcloud ($ sudo snap install nextcloud)
@@ -42,12 +52,6 @@ device (IoT), nextcloud.local will be used instead.
4252
4353You will be asked to create a password for "admin" and your favourite cloud will be ready
4454
45- **Note **
46-
47- Do not use on IoT devices yet. You probably don't need these instructions anyway if you're
48- using Snappy Base 16.04 as it's currently unreleased.
49-
50-
5155* Make a :doc: `fresh backup <backup >`.
5256* Upgrade your Nextcloud snap: sudo snap refresh nextcloud
5357* Run :ref: `occ upgrade <command_line_upgrade_label >`.
@@ -57,11 +61,6 @@ using Snappy Base 16.04 as it's currently unreleased.
5761
5862Upgrade tips
5963------------
60-
61- .. seealso ::
62-
63- If you upgrade from a previous major version please see :ref: `critical changes<critical-changes> ` first.
64-
6564Upgrading Nextcloud from a Snap is just like upgrading any snap package.
6665For example:
6766
@@ -75,15 +74,13 @@ this until you refresh your Nextcloud page.
7574 :scale: 75%
7675 :alt: Nextcloud status screen informing users that it is in maintenance mode.
7776
78- Then use ``occ `` to complete the upgrade. You must run ``occ `` as your HTTP
79- user. This example is for Debian/Ubuntu::
77+ Then use ``nextcloud.occ `` to complete the upgrade. You must run ``nextcloud.occ `` as root. This example is for Debian/Ubuntu::
8078
81- sudo -u www-data php occ upgrade
79+ sudo nextcloud. occ upgrade
8280
8381This example is for CentOS/RHEL/Fedora::
8482
85- sudo -u apache php occ upgrade
86-
83+ sudo /snap/bin/nextcloud.occ
8784
8885.. _skipped_release_upgrade_label :
8986
@@ -100,7 +97,7 @@ for the moment If you have skipped any major releases you can bring your
10097Nextcloud current with these steps:
10198
10299If you are using a Snap package:
103- sudo snap refresh nextcloud
100+ sudo snap refresh nextcloud --stable
104101
105102If you did **not ** install via a Snap package:
106103
0 commit comments