Plaidstallion

Manual update of nextcloud

Oct 20th, 2020 (edited)
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. docker exec -it -u abc nextcloud bash
  2.  
  3. cd /config/www
  4.  
  5. mv nextcloud nextcloud.old
  6.  
  7. wget https://download.nextcloud.com/server/releases/<release>.zip
  8.  
  9. unzip <release>.zip
  10.  
  11. cp nextcloud.old/config/config.php nextcloud/config
  12.  
  13. #ensure maintenance mode set to false
  14. ctrl+p+q
  15. #docker exec -it nextcloud bash
  16. #occ maintenance:mode --off
  17. #ctrl+p+q
  18.  
  19. docker exec nextcloud occ maintenance:mode --off
  20.  
  21. #refresh your nextcloud instance in the browser and it should ask you to update in the gui
  22.  
  23. #Refresh all db settings -
  24.  
  25. docker exec -it nextcloud /bin/bash
  26.  
  27. cd /config/www/nextcloud
  28.  
  29. occ db:add-missing-primary-keys
  30. occ db:convert-filecache-bigint
  31. occ db:add-missing-indices
  32.  
  33. ctrl+p+q
  34.  
  35. docker stop nextcloud && docker rm nextcloud && docker-compose up -d nextcloud
  36.  
  37. #stolen and modified for docker from this github comment https://github.com/nextcloud/updater/issues/156#issuecomment-395443783
Add Comment
Please, Sign In to add comment