From 4e494c40425531ee26dbcba2476d7ac20fced05d Mon Sep 17 00:00:00 2001 From: bsod Date: Wed, 24 Feb 2021 21:02:15 +0100 Subject: [PATCH] use -u flag for docker-compose exec instead of sudo --- Update-Nextcloud.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Update-Nextcloud.md b/Update-Nextcloud.md index e4ae011..49afcd1 100644 --- a/Update-Nextcloud.md +++ b/Update-Nextcloud.md @@ -20,7 +20,7 @@ root$ git pull build from our new docker-compose file; enable maintenance mode; start docker container; upgrade nextcloud; disable maintenance mode: ```bash -root$ docker-compose build && docker-compose exec webservice sudo -u www-data php occ maintenance:mode --on && docker-compose up -d && docker-compose exec webservice sudo -u www-data php occ upgrade && docker-compose exec webservice sudo -u www-data php occ maintenance:mode --off +root$ docker-compose build && docker-compose exec -u www-data webservice php occ maintenance:mode --on && docker-compose up -d && docker-compose exec -u www-data webservice php occ upgrade && docker-compose exec -u www-data webservice php occ maintenance:mode --off ```
\ No newline at end of file