Skip to content

Instantly share code, notes, and snippets.

@PaulGoldschmidt
Last active August 27, 2023 20:21
Show Gist options
  • Save PaulGoldschmidt/b2c1d130a2a0bb2153c419c41dfe9318 to your computer and use it in GitHub Desktop.
Save PaulGoldschmidt/b2c1d130a2a0bb2153c419c41dfe9318 to your computer and use it in GitHub Desktop.
Simple Nextcloud-Dockerized update script w/ libmagickcore & db:add-missing-indices
containterName="nextcloud"
sudo docker exec --user www-data $containterName php occ -V
docker-compose stop && docker-compose rm --force && docker-compose pull && docker-compose build --pull && docker-compose up -d
docker exec $containterName /bin/bash -c 'apt update && apt install -y libmagickcore-6.q16-6-extra'
sudo docker exec --user www-data $containterName php occ db:add-missing-indices
sudo docker exec --user www-data $containterName php occ db:convert-filecache-bigint -q
sudo docker exec --user www-data $containterName php occ -V
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment