From 264d1fd750741fe4fe1d461d8bae400651425262 Mon Sep 17 00:00:00 2001 From: xfuture Date: Mon, 2 Nov 2020 17:41:42 +0100 Subject: [PATCH] =?UTF-8?q?=E2=80=9EUpdate=20Nextcloud=E2=80=9C=20hinzuf?= =?UTF-8?q?=C3=BCgen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Update-Nextcloud.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Update-Nextcloud.md diff --git a/Update-Nextcloud.md b/Update-Nextcloud.md new file mode 100644 index 0000000..e4ae011 --- /dev/null +++ b/Update-Nextcloud.md @@ -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) +``` +
+ +pull latest changes from our master branch: +```bash +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 +``` + +
\ No newline at end of file