From ff9e503de34d2a2256f374ba47ea1e619e9d3261 Mon Sep 17 00:00:00 2001 From: Zhang Maiyun Date: Sun, 28 Jun 2020 20:12:02 +0800 Subject: [PATCH] Note about not placing files inside /var/www/html Existing files inside /var/www/html get deleted by the upgrade script. This update documents that. (#1165) Signed-off-by: Zhang Maiyun --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index c418622a..2be1d678 100644 --- a/README.md +++ b/README.md @@ -92,6 +92,8 @@ $ docker run -d \ nextcloud ``` +Please note that anything inside `/var/www/html` will be removed by the installation script, except for `config`, `data`, `custom_apps`, `themes` and `version.php`. So make sure you do not leave other important files inside. + ## Using the Nextcloud command-line interface To use the [Nextcloud command-line interface](https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/occ_command.html) (aka. `occ` command): ```console @@ -479,6 +481,10 @@ You're already using Nextcloud and want to switch to docker? Great! Here are som ```php 'datadirectory' => '/var/www/html/data', ``` + 5. Make sure your Nextcloud lives at the web root. Look for lines like + ```php + 'overwrite.cli.url' => 'https://localhost/nextcloud', + ``` 4. Copy your data (nextcloud_app_1 is the name of your Nextcloud container):