use -u flag for docker-compose exec instead of sudo
parent
fce8c6b7a5
commit
4e494c4042
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
build from our new docker-compose file; enable maintenance mode; start docker container; upgrade nextcloud; disable maintenance mode:
|
||||||
|
|
||||||
```bash
|
```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/>
|
<br/>
|
Loading…
Reference in a new issue