use -u flag for docker-compose exec instead of sudo

bsod 2021-02-24 21:02:15 +01:00
parent fce8c6b7a5
commit 4e494c4042

@ -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
```
<br/>