Added recursive flag to chown command

This commit is contained in:
Yotam 2017-12-17 14:10:35 +02:00 committed by GitHub
parent 85e01ef001
commit 98f308259c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -318,16 +318,16 @@ docker-compose exec db rm /dmp
4. Copy your data (nextcloud_app_1 is the name of your Nextcloud container): 4. Copy your data (nextcloud_app_1 is the name of your Nextcloud container):
```console ```console
docker cp ./data/ nextcloud_app_1:/var/www/html/data docker cp ./data/ nextcloud_app_1:/var/www/html/data
docker-compose exec app chown www-data:www-data /var/www/html/data docker-compose exec app chown -R www-data:www-data /var/www/html/data
docker cp ./theming/ nextcloud_app_1:/var/www/html/theming docker cp ./theming/ nextcloud_app_1:/var/www/html/theming
docker-compose exec app chown www-data:www-data /var/www/html/theming docker-compose exec app chown -R www-data:www-data /var/www/html/theming
docker cp ./config/config.php nextcloud_app_1:/var/www/html/config docker cp ./config/config.php nextcloud_app_1:/var/www/html/config
docker-compose exec app chown www-data:www-data /var/www/html/config docker-compose exec app chown -R www-data:www-data /var/www/html/config
``` ```
5. Copy only the custom apps you use (or simply redownload them from the web interface): 5. Copy only the custom apps you use (or simply redownload them from the web interface):
```console ```console
docker cp ./apps/ nextcloud_data:/var/www/html/custom_apps docker cp ./apps/ nextcloud_data:/var/www/html/custom_apps
docker-compose exec app chown www-data:www-data /var/www/html/custom_apps docker-compose exec app chown -R www-data:www-data /var/www/html/custom_apps
``` ```
# Questions / Issues # Questions / Issues