„Update Nextcloud“ hinzufügen
commit
264d1fd750
1 changed files with 26 additions and 0 deletions
26
Update-Nextcloud.md
Normal file
26
Update-Nextcloud.md
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
### update my nextcloud instance to the latest version
|
||||||
|
|
||||||
|
Background: wanted to keep my nextcloud instance up2date
|
||||||
|
|
||||||
|
verify your git remote repository (in your nextcloud workdir):
|
||||||
|
```bash
|
||||||
|
root$ git remote -v
|
||||||
|
|
||||||
|
Output:
|
||||||
|
origin https://your_user@git.zom.bi/zombi/nextcloud (fetch)
|
||||||
|
origin https://your_user@git.zom.bi/zombi/nextcloud (push)
|
||||||
|
```
|
||||||
|
<br/>
|
||||||
|
|
||||||
|
pull latest changes from our master branch:
|
||||||
|
```bash
|
||||||
|
root$ git pull
|
||||||
|
```
|
||||||
|
<br/>
|
||||||
|
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
|
||||||
|
```
|
||||||
|
|
||||||
|
<br/>
|
Loading…
Reference in a new issue