mirror of
https://github.com/nextcloud/docker.git
synced 2026-04-08 07:11:11 +02:00
Merge pull request #2559 from nextcloud/jtr/docs-readme-migrate-apps
docs(README): clarify apps_paths migration instructions
This commit is contained in:
commit
dc88da8ff6
15
README.md
15
README.md
@ -738,6 +738,7 @@ You're already using Nextcloud and want to switch to docker? Great! Here are som
|
||||
docker compose exec db sh -c "psql -U USER --set ON_ERROR_STOP=on nextcloud < /dmp"
|
||||
docker compose exec db rm /dmp
|
||||
```
|
||||
3. Edit your config.php
|
||||
3. Edit your config.php
|
||||
1. Set database connection
|
||||
- In case of MySQL database
|
||||
@ -748,17 +749,7 @@ You're already using Nextcloud and want to switch to docker? Great! Here are som
|
||||
```php
|
||||
'dbhost' => 'db:5432',
|
||||
```
|
||||
2. Make sure you have no configuration for the `apps_paths`. Delete lines like these
|
||||
```php
|
||||
'apps_paths' => array (
|
||||
0 => array (
|
||||
'path' => OC::$SERVERROOT.'/apps',
|
||||
'url' => '/apps',
|
||||
'writable' => true,
|
||||
),
|
||||
),
|
||||
```
|
||||
3. Make sure to have the `apps` directory non writable and the `custom_apps` directory writable
|
||||
2. Replace any existing `apps_paths` configuration with the following Docker-compatible version. Your existing configuration may look different (e.g. using `OC::$SERVERROOT.'/apps'` or having only a single entry), but it must be replaced with exactly this to ensure shipped apps in `apps` are non-writable and user-installed apps go to `custom_apps`:
|
||||
```php
|
||||
'apps_paths' => array (
|
||||
0 => array (
|
||||
@ -773,7 +764,7 @@ You're already using Nextcloud and want to switch to docker? Great! Here are som
|
||||
),
|
||||
),
|
||||
```
|
||||
4. Make sure your data directory is set to /var/www/html/data
|
||||
3. Make sure your data directory is set to /var/www/html/data
|
||||
```php
|
||||
'datadirectory' => '/var/www/html/data',
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user